Skip to content

Commit

Permalink
Adjust sidebar timeout for proper feedback
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ (skjnldsv) <[email protected]>
Signed-off-by: npmbuildbot-nextcloud[bot] <npmbuildbot-nextcloud[bot]@users.noreply.github.com>
  • Loading branch information
skjnldsv authored and npmbuildbot-nextcloud[bot] committed Mar 29, 2021
1 parent 035f54d commit c171468
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions js/viewer-main.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer-main.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ export default {
// Open the sidebar sharing tab
// TODO: also hide figure, needs a proper method for it in server Sidebar
await OCA.Files.Sidebar.open(this.currentFile.filename)
setTimeout(this.showAppsSidebar, 50) // we have to wait the animation of the sidebar
setTimeout(this.showAppsSidebar, 100) // we have to wait the animation of the sidebar
},

showAppsSidebar() {
Expand Down

0 comments on commit c171468

Please sign in to comment.