[stable25] Fix missing files:navigation:changed when clicking on a dir in the favorites view#36683
Conversation
|
Doesn't the urlChanged jQuery event trigger and catch this in text? https://github.com/nextcloud/text/blob/stable25/src/helpers/files.js#L180-L182 |
|
@juliushaertl Problem is, in https://github.com/nextcloud/server/blob/fix/stable25/files.navigation.changed-when-entering-favorite-dir/apps/files/js/app.js#L311 I checked and the |
94702ad to
3426c87
Compare
|
Rebased on stable 25 |
|
/rebase |
Signed-off-by: Julien Veyssier <julien-nc@posteo.net>
3426c87 to
7ef3f37
Compare
While being in the favorites view, if one clicks a directory, the
files:navigation:changedevent is not emitted so Text can't update the rich workspace visibility.This fixes nextcloud/text#3697 but has the side effect to emit the event twice when clicking on the "Favorites" nav item while being in the "All files" view.
As
files:navigation:changedis only listened by Text, it does not seems too bad.An alternative fix would be to remove the silent option from
server/apps/files/js/favoritesplugin.js
Line 98 in 6bb0985
but we don't know exactly what side effect it could have.