Skip to content

Conversation

@backportbot-nextcloud
Copy link

backport of #35062

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 <[email protected]>
@backportbot-nextcloud backportbot-nextcloud bot added this to the Nextcloud 22.2.11 milestone Nov 26, 2022
@danxuliu danxuliu changed the title [stable22] [stable23] Fix sidebar not automatically hidden in Files app [stable22] Fix sidebar not automatically hidden in Files app Nov 26, 2022
@danxuliu danxuliu requested a review from blizzz November 26, 2022 03:29
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@blizzz blizzz merged commit 597d69b into stable22 Dec 8, 2022
@blizzz blizzz deleted the backport/35062/stable22 branch December 8, 2022 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants