diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2019-12-27 16:33:05 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2020-01-09 23:45:22 +0300 |
commit | 3eb801d16c011853af300a5805fe53565771dde9 (patch) | |
tree | 100bc62f0102dbd5fa2634496489dc0af3629839 /src/mainFilesSidebar.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/mainFilesSidebar.js')
-rw-r--r-- | src/mainFilesSidebar.js | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/mainFilesSidebar.js b/src/mainFilesSidebar.js index 6ac645fd9..b2e94d141 100644 --- a/src/mainFilesSidebar.js +++ b/src/mainFilesSidebar.js @@ -23,7 +23,8 @@ */ import Vue from 'vue' -import App from './FilesSidebarTabApp' +import FilesSidebarCallViewApp from './FilesSidebarCallViewApp' +import FilesSidebarTabApp from './FilesSidebarTabApp' // Store import Vuex from 'vuex' @@ -56,9 +57,14 @@ Vue.prototype.OCA = OCA Vue.use(Vuex) Vue.use(vuescroll, { debounce: 600 }) +const newCallView = () => new Vue({ + store, + render: h => h(FilesSidebarCallViewApp), +}) + const newTab = () => new Vue({ store, - render: h => h(App), + render: h => h(FilesSidebarTabApp), }) if (!window.OCA.Talk) { @@ -66,6 +72,7 @@ if (!window.OCA.Talk) { } Object.assign(window.OCA.Talk, { fileInfo: null, + newCallView, newTab, store: store, }) |