diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-12-27 14:33:05 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-01-09 21:45:22 +0100 |
commit | 3eb801d16c011853af300a5805fe53565771dde9 (patch) | |
tree | 100bc62f0102dbd5fa2634496489dc0af3629839 /src/mainFilesSidebarLoader.js | |
parent | 397bbd550069ae561675f237324e85863b42bbdd (diff) |
Add dummy call view to the Files sidebar
Currently the dummy call view is simply shown when the user is in the
call and hidden otherwise.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'src/mainFilesSidebarLoader.js')
-rw-r--r-- | src/mainFilesSidebarLoader.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mainFilesSidebarLoader.js b/src/mainFilesSidebarLoader.js index d5500fa63..d2ab43e6c 100644 --- a/src/mainFilesSidebarLoader.js +++ b/src/mainFilesSidebarLoader.js @@ -20,6 +20,7 @@ * */ +import FilesSidebarCallView from './views/FilesSidebarCallView' import FilesSidebarTab from './views/FilesSidebarTab' import { leaveConversation } from './services/participantsService' @@ -43,6 +44,7 @@ const isEnabled = function(fileInfo) { window.addEventListener('DOMContentLoaded', () => { if (OCA.Files && OCA.Files.Sidebar) { + OCA.Files.Sidebar.registerSecondaryView(new FilesSidebarCallView()) OCA.Files.Sidebar.registerTab(new OCA.Files.Sidebar.Tab('talk-chat', FilesSidebarTab, isEnabled)) } }) |