Uh oh!
There was an error while loading. Please reload this page.
fix(files): Make the navigation reactive to view changes and show also sub routes as active - #42992
Conversation
susnux
commented
Jan 20, 2024
/backport to stable28 |
Uh oh!
There was an error while loading. Please reload this page.
2458ca2 to
02cc1b4Compare
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. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
98e6568 to
8767795Comparesusnux
commented
Jan 21, 2024
Looks like this now: vokoscreenNG-2024-01-21_20-07-00.mp4 |
Uh oh!
There was an error while loading. Please reload this page.
8767795 to
77ea357Compare
emoral435
left a comment
There was a problem hiding this comment.
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 :)
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
70b7ce7 to
9e786c5Comparesusnux
commented
Jan 24, 2024
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 |
susnux
commented
Jan 24, 2024
/backport to stable28 |
This comment was marked as resolved.
This comment was marked as resolved.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
80c1961 to
cdbc39bCompare
This comment was marked as resolved.
This comment was marked as resolved.
cdbc39b to
7ae29cfCompare27c5933 to
2db1440Comparesusnux
commented
Jan 25, 2024
Resolved this vokoscreenNG-2024-01-25_12-39-35.mp4 |
ShGKme
commented
Jan 25, 2024
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. |
susnux
commented
Jan 25, 2024
I think it is unrelated, but another bug. This also happens on master, the problem here is that |
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
…ion entries Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
2db1440 to
eea7f62Comparesusnux
commented
Jan 25, 2024
@ShGKme pushed a commit that fixes also that issue, you can try again :) |




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