diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-06-21 16:22:55 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2021-06-21 16:22:55 +0300 |
commit | 22b01cd5fdbc695e9a13301cc25c0129954f0ed2 (patch) | |
tree | ef73a5c6c0d726736f1a08b4ab2c255e93ce0803 /src/main.js | |
parent | f22249d58b0dc6a3c3dbcea09207c8085c997b8b (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.js | 4 |
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(), |