Skip to content

Commit

Permalink
Merge pull request #1331 from nextcloud/fix/sidebar-talk-open
Browse files Browse the repository at this point in the history
  • Loading branch information
skjnldsv authored Aug 24, 2022
2 parents c4cbe28 + 2732f1b commit fcd357d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 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.

3 changes: 2 additions & 1 deletion src/views/Viewer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ export default {
// initial loading start
this.initiated = true
if (OCA?.Files?.Sidebar) {
if (OCA?.Files?.Sidebar?.setFullScreenMode) {
OCA.Files.Sidebar.setFullScreenMode(true)
}
},
Expand All @@ -418,6 +418,7 @@ export default {
*/
async openFile(path, overrideHandlerId = null) {
this.beforeOpen()
// cancel any previous request
this.cancelRequestFile()
Expand Down

0 comments on commit fcd357d

Please sign in to comment.