From ec778a0039853e0732e33d78b7e2a54f25fdcbe7 Mon Sep 17 00:00:00 2001 From: Louis Chemineau Date: Thu, 9 Jan 2025 13:48:23 +0100 Subject: fix: Use `displayname` as sidebar title Keep the fallback with this.fileInfo as this.node could be null Signed-off-by: Louis Chemineau Signed-off-by: nextcloud-command --- apps/files/src/views/Sidebar.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files/src') diff --git a/apps/files/src/views/Sidebar.vue b/apps/files/src/views/Sidebar.vue index 6bf558181d2..c915409f588 100644 --- a/apps/files/src/views/Sidebar.vue +++ b/apps/files/src/views/Sidebar.vue @@ -245,8 +245,8 @@ export default { }, compact: this.hasLowHeight || !this.fileInfo.hasPreview || this.isFullScreen, loading: this.loading, - name: this.fileInfo.name, - title: this.fileInfo.name, + name: this.node?.displayname ?? this.fileInfo.name, + title: this.node?.displayname ?? this.fileInfo.name, } } else if (this.error) { return { -- cgit v1.2.3