]> source.dussan.org Git - nextcloud-server.git/commit
Fix sidebar not automatically hidden in Files app 35061/head
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Mon, 7 Nov 2022 23:53:12 +0000 (00:53 +0100)
committerbackportbot-nextcloud[bot] <backportbot-nextcloud[bot]@users.noreply.github.com>
Wed, 9 Nov 2022 19:14:49 +0000 (19:14 +0000)
commite606db168a353d38f49e2c644787b65c84c452a5
tree6e555b95840fd29202492129111c1bc13c89b6b7
parent6b5a8eec4cd044d74dae9b0add4ccaf812abbaae
Fix sidebar not automatically hidden in Files app

Although the Files app creates the legacy sidebar (details view) it is
then replaced with the newer Vue app sidebar. Due to this ".detailsView"
no longer finds an element and therefore nothing was hidden when
"hideAppSidebar($('.detailsView'))" was called (for example, when
changing to another section).

However, "OC.Apps.hideAppSidebar()" does not properly work either with
the Vue sidebar used in the Files app (once hidden the sidebar is not
shown again). For simplicity, and to avoid any possible side effect in
other apps from changing "OC.Apps.hideAppSidebar", now
"OC.Files.Sidebar.close()" is used instead.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
apps/files/js/app.js
apps/files/js/gotoplugin.js