Skip to content

Commit ec778a0

Browse files
artongenextcloud-command
authored andcommitted
fix: Use displayname as sidebar title
Keep the fallback with this.fileInfo as this.node could be null Signed-off-by: Louis Chemineau <louis@chmn.me> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent 33b564d commit ec778a0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

apps/files/src/views/Sidebar.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,8 @@ export default {
245245
},
246246
compact: this.hasLowHeight || !this.fileInfo.hasPreview || this.isFullScreen,
247247
loading: this.loading,
248-
name: this.fileInfo.name,
249-
title: this.fileInfo.name,
248+
name: this.node?.displayname ?? this.fileInfo.name,
249+
title: this.node?.displayname ?? this.fileInfo.name,
250250
}
251251
} else if (this.error) {
252252
return {

dist/files-sidebar.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/files-sidebar.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)