-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sidebar): Show node owner in metadata subline #46691
base: master
Are you sure you want to change the base?
Conversation
6aafa87
to
f0b68d7
Compare
Nice! Good idea using the user bubble component. I would suggest we include only the username in the user bubble, and to separate the different metadata we could use a middle dot
Also the user bubble component should be center aligned with the rest of the text :) |
f0b68d7
to
6a3886f
Compare
9c1c432
to
1a55a34
Compare
1a55a34
to
23fed46
Compare
23fed46
to
a512bfd
Compare
a512bfd
to
bcd9cd8
Compare
bcd9cd8
to
1a0b447
Compare
1a0b447
to
5af28be
Compare
50600f2
to
c10edef
Compare
c10edef
to
5de2e05
Compare
apps/files/src/views/Sidebar.vue
Outdated
@@ -460,6 +486,7 @@ export default { | |||
this.fileInfo = await FileInfo(this.davPath) | |||
// adding this as fallback because other apps expect it | |||
this.fileInfo.dir = this.file.split('/').slice(0, -1).join('/') | |||
this.node = await fetchNode({ path: (this.fileInfo.path + '/' + this.fileInfo.name).replace('//', '/') }) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aren't we fetching the file info already somewhere?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I doubt in the same way we need it here, @skjnldsv is there somewhere else I can pick this up?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As the sidebar is part of the files app, you can use the files store to retrieve the current node without needing to re-fetch it again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using the fileStore as at now breaks the sidebar. With undefined errors.... Looks like the sidebar is trying to reference the fileStore before it is ready.
cb22b2d
to
908165a
Compare
908165a
to
51d2ce5
Compare
Resolves: #46178 Signed-off-by: fenn-cs <[email protected]>
51d2ce5
to
0a5898f
Compare
Summary
Show user bubble to indicate owner of file in sidebar overview (this should not change irrespective of share status)...
Resolves: #46178
Screenshots
TODO