Skip to content

[stable22] Fix sidebar not automatically hidden in Files app - #35439

Merged
blizzz merged 1 commit into
stable22from
backport/35062/stable22
Dec 8, 2022
Merged

[stable22] Fix sidebar not automatically hidden in Files app#35439
blizzz merged 1 commit into
stable22from
backport/35062/stable22

Conversation

@backportbot-nextcloud

Copy link
Copy Markdown

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 <danxuliu@gmail.com>
@danxuliudanxuliu changed the title [stable22] [stable23] Fix sidebar not automatically hidden in Files app[stable22] Fix sidebar not automatically hidden in Files appNov 26, 2022
@danxuliu
danxuliu requested a review from blizzzNovember 26, 2022 03:29

@danxuliudanxuliu left a comment

Copy link
Copy Markdown
Member

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 stable22Dec 8, 2022
@blizzz
blizzz deleted the backport/35062/stable22 branch December 8, 2022 10:50
Sign up for freeto 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.

2 participants

@blizzz@danxuliu