Skip to content

[stable30] feat: Reset route if neither the Viewer of the Sidebar is open - #48000

Merged
artonge merged 2 commits into
stable30from
backport/47920/stable30
Sep 16, 2024
Merged

[stable30] feat: Reset route if neither the Viewer of the Sidebar is open#48000
artonge merged 2 commits into
stable30from
backport/47920/stable30

Conversation

@backportbot

@backportbotbackportbotBot commented Sep 15, 2024

Copy link
Copy Markdown

Backport of #47920

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@skjnldsvskjnldsv 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.

Blocking, opening Viewer seems to change dir to root

@artonge
artongeforce-pushed the backport/47920/stable30 branch from f57d752 to ced43a1CompareSeptember 16, 2024 09:17
@artonge
artonge marked this pull request as ready for review September 16, 2024 09:17
When the viewer or the sidebar is opened, we add the fileid to the route.
When both of them are closed, we do not remove the fileid from the route.
This means that, upon reload, the sidebar will be opened even though it was closed previously.
This PR ensure that the fileid is removed from the route when both the Sidebar and the Viewer are closed.
Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge
artongeforce-pushed the backport/47920/stable30 branch from ced43a1 to 2e5cab0CompareSeptember 16, 2024 09:18
@artonge

Copy link
Copy Markdown
Collaborator

Blocking, opening Viewer seems to change dir to root

Was due to the missing dot 🙈

Signed-off-by: Louis Chemineau <louis@chmn.me>
@artonge
artongeforce-pushed the backport/47920/stable30 branch from 2e5cab0 to f44c76eCompareSeptember 16, 2024 09:53
@artonge
artonge merged commit 139b2cd into stable30Sep 16, 2024
@artonge
artonge deleted the backport/47920/stable30 branch September 16, 2024 12:21
@AltahrimAltahrim mentioned this pull request Oct 1, 2024
4 tasks
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to reviewWaiting for reviewsenhancementfeature: file sidebarRelated to the file sidebar componentfeature: filesjavascript

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@artonge@skjnldsv