Skip to content

Commit eab2d9e

Browse files
artongenextcloud-command
authored andcommitted
fix: Forward attributes to the sidebar
Needed for Photos' sidebar tab Signed-off-by: Louis Chemineau <louis@chmn.me> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
1 parent f26dc79 commit eab2d9e

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

apps/files/src/services/FileInfo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export default function(node: Node) {
2424
sharePermissions: node.attributes['share-permissions'],
2525
shareAttributes: JSON.parse(node.attributes['share-attributes'] || '[]'),
2626
type: node.type === 'file' ? 'file' : 'dir',
27+
attributes: node.attributes,
2728
})
2829

2930
// TODO remove when no more legacy backbone is used

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)