Skip to content

Commit

Permalink
fix: Use displayname as sidebar title
Browse files Browse the repository at this point in the history
Keep the fallback with this.fileInfo as this.node could be null

Signed-off-by: Louis Chemineau <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
  • Loading branch information
artonge authored and nextcloud-command committed Jan 9, 2025
1 parent 33b564d commit ec778a0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions apps/files/src/views/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 2 additions & 2 deletions dist/files-sidebar.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/files-sidebar.js.map

Large diffs are not rendered by default.

0 comments on commit ec778a0

Please sign in to comment.