-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
fix(files): Make the navigation reactive to view changes and show also sub routes as active #42992
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
Conversation
|
/backport to stable28 |
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.
2458ca2 to
02cc1b4
Compare
I do not think we need such a complex solution, I think we can go for the moment with just checking the view we are in. I pushed a fix that only disables We might later add a Edit we have another issue with the favorites, the generated route on the navigation did not include the fileid but it was set when clicking the file from the filelist. |
98e6568 to
8767795
Compare
|
Looks like this now: vokoscreenNG-2024-01-21_20-07-00.mp4 |
8767795 to
77ea357
Compare
emoral435
left a comment
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.
Overall, love this PR. I'm just getting assigned to more files-related issues for the spring sprint, and my advice was to ping you whenever I have a question or draft a PR, so seeing your code genuinely supports my growth here, and I will def ping you to review my PR's because the code quality here is really good. Just a few comments and nitpicks and this is perfect, I tried it on my local dev env and it also works :)
70b7ce7 to
9e786c5
Compare
I wonder how it worked before because that object was never made reactive? |
It's a value from an object, which is passed as a reference, it should be reactive by default. EDIT: this is actually not an issue with vue, but the 5.1.0 release of EDIT2: wrong test, my bad, downgrading vue to |
|
/backport to stable28 |
80c1961 to
cdbc39b
Compare
This comment was marked as resolved.
This comment was marked as resolved.
cdbc39b to
7ae29cf
Compare
ShGKme
left a comment
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.
27c5933 to
2db1440
Compare
Resolved this vokoscreenNG-2024-01-25_12-39-35.mp4 |
It still doesn't fully work for me. It fixes the navigation active, but the content is not displayed. Try to add some content to the "Bar" folder. It must be listed then Favorites/Bar is open from the navigation. |
|
I think it is unrelated, but another bug. This also happens on master, the problem here is that |
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
…ion entries Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: nextcloud-command <[email protected]>
2db1440 to
eea7f62
Compare
|
@ShGKme pushed a commit that fixes also that issue, you can try again :) |
ShGKme
left a comment
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.
Works now 🥳




Summary
This resolves two issues with the files app navigation:
currentViewis a computed value but all source objects are not reactive (@nextcloud/filesNavigation). So to ensure changes to the navigation can be detected the object is made observable.exactprop on the app navigation as otherwise it will not showall filesactive if you visited a file likeapps/files/files/123.Navigation.vueScreenshots
Before
Pay attention that while the navigation changes the file list does not. Also not that no navigation is active within a subfolder.
vokoscreenNG-2024-01-21_00-54-00.mp4
After
See that navigation works and the file list is updated + also in subfolders the navigation is kept active.
Please note: The current version (video) is shown here: #42992 (comment) )
vokoscreenNG-2024-01-21_00-52-54.mp4
Checklist