Skip to content

Commit 4ebcf1a

Browse files
Merge pull request #8606 from christianbeeznest/ofaj-23496-2
Social: Fix personal files translated labels - refs BT#23496
2 parents 353acb7 + 14b836f commit 4ebcf1a

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

assets/vue/views/personalfile/List.vue

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{{ t("Location") }}
1111
</div>
1212
<div class="truncate text-body-1 font-semibold text-gray-90">
13-
{{ currentFolderTitle || t("Root") }}
13+
{{ displayCurrentFolderTitle }}
1414
</div>
1515
</div>
1616

@@ -473,6 +473,16 @@ watch(
473473
474474
const isTinyPicker = computed(() => String(route.query.picker || "") === "tinymce")
475475
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+
476486
const pickerTypeLabel = computed(() => {
477487
if (filterType.value === "images") return t("Images")
478488
if (filterType.value === "media") return t("Media")

0 commit comments

Comments
 (0)