We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 353acb7 + 14b836f commit 4ebcf1aCopy full SHA for 4ebcf1a
1 file changed
assets/vue/views/personalfile/List.vue
@@ -10,7 +10,7 @@
10
{{ t("Location") }}
11
</div>
12
<div class="truncate text-body-1 font-semibold text-gray-90">
13
- {{ currentFolderTitle || t("Root") }}
+ {{ displayCurrentFolderTitle }}
14
15
16
@@ -473,6 +473,16 @@ watch(
473
474
const isTinyPicker = computed(() => String(route.query.picker || "") === "tinymce")
475
476
+const displayCurrentFolderTitle = computed(() => {
477
+ const title = String(currentFolderTitle.value || "").trim()
478
+
479
+ if (!title || title.toLowerCase() === "root") {
480
+ return t("Root")
481
+ }
482
483
+ return title
484
+})
485
486
const pickerTypeLabel = computed(() => {
487
if (filterType.value === "images") return t("Images")
488
if (filterType.value === "media") return t("Media")
0 commit comments