Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable19] Show sidebar when Viewer is opened #3679

Merged
merged 1 commit into from
May 26, 2020

Conversation

backportbot-nextcloud[bot]
Copy link

backport of #3665

The Viewer expects that, if the app has a sidebar, an
"OCA.Files.Sidebar" object exists. This object should contain a
"state.file" property with the name of the file currently shown (or an
empty string if the sidebar is closed), and "open" and "close" functions
to be called by the Viewer when opening and closing the sidebar is
triggered by the Viewer.

The sidebar adjusts its width to the width of the sidebar once the
opening ends. The sidebar comes from nextcloud/vue, and its opening is
animated with a transition, so "OCA.Files.Sidebar.open" needs to wait
until the transition ends to be resolved.

Besides the "OCA.Files.Sidebar" object the Viewer also expects that the
sidebar element in the DOM has an "app-sidebar" id. In nextcloud/vue >=
2.0.0 the id of the sidebar was changed to "app-sidebar-vue", so it
needs to be overridden to be found by the Viewer.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
@nickvergessen nickvergessen merged commit 947f2ab into stable19 May 26, 2020
@nickvergessen nickvergessen deleted the backport/3665/stable19 branch May 26, 2020 13:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants