Skip to content

Commit

Permalink
Close NC sidebar on file open
Browse files Browse the repository at this point in the history
    - For internal shared links of Office documents sidebar gets open by default
    - sidebar should not open at all when we click on document file or file gets opened by shared link

Signed-off-by: Darshan-upadhyay1110 <darshan.upadhyay@collabora.com>
  • Loading branch information
Darshan-upadhyay1110 committed Oct 26, 2023
1 parent 35338a2 commit 1930be4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/view/FilesAppIntegration.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export default {
this.getFileList().hideMask && this.getFileList().hideMask()
this.getFileList().setPageTitle && this.getFileList().setPageTitle(this.fileName)
}
window.OCA?.Files?.Sidebar?.close()
},

close() {
Expand Down

0 comments on commit 1930be4

Please sign in to comment.