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>2019-12-27 16:33:05 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2020-01-09 23:45:22 +0300
commit3eb801d16c011853af300a5805fe53565771dde9 (patch)
tree100bc62f0102dbd5fa2634496489dc0af3629839 /src/mainFilesSidebar.js
parent397bbd550069ae561675f237324e85863b42bbdd (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.js11
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,
})