Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2021-06-21 16:22:55 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2021-06-21 16:22:55 +0300
commit22b01cd5fdbc695e9a13301cc25c0129954f0ed2 (patch)
treeef73a5c6c0d726736f1a08b4ab2c255e93ce0803 /src/main.js
parentf22249d58b0dc6a3c3dbcea09207c8085c997b8b (diff)
Add "setFullScreenMode" to OCA.Files.Sidebar object
In Nextcloud 22 "setFullScreenMode" was added to OCA.Files.Sidebar. This method is expected and used by the viewer, so even if the sidebar style is not changed to set it in full screen mode the method needs to be there. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/main.js')
-rw-r--r--src/main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.js b/src/main.js
index 3d0e43e8e..4748e0a0c 100644
--- a/src/main.js
+++ b/src/main.js
@@ -160,6 +160,10 @@ Sidebar.prototype.close = function() {
store.dispatch('hideSidebar')
this.state.file = ''
}
+Sidebar.prototype.setFullScreenMode = function(isFullScreen) {
+ // Sidebar style is not changed in Talk when the viewer is opened; this is
+ // needed only for compatibility with OCA.Files.Sidebar interface.
+}
Object.assign(window.OCA.Files, {
Sidebar: new Sidebar(),