diff options
author | Joas Schilling <coding@schilljs.com> | 2020-01-14 14:28:50 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2020-01-14 14:28:50 +0300 |
commit | 6c0c6a2a167ede3ed3a0b3fa932b1f482f4c48f2 (patch) | |
tree | c0e96f7a30f40d0ca8453d93fa0b2b67925c21d6 /src/FilesSidebarCallViewApp.vue | |
parent | 2d4e4abb5b5f810055495d403b55bc2a696027fb (diff) |
Prevent unload from the files app too
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'src/FilesSidebarCallViewApp.vue')
-rw-r--r-- | src/FilesSidebarCallViewApp.vue | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/FilesSidebarCallViewApp.vue b/src/FilesSidebarCallViewApp.vue index ec43d3df1..ad5b9d98c 100644 --- a/src/FilesSidebarCallViewApp.vue +++ b/src/FilesSidebarCallViewApp.vue @@ -19,15 +19,19 @@ --> <template> - <CallView v-if="isInFile" - v-show="isInCall" - :token="token" - :use-constrained-layout="true" /> + <div v-if="isInFile"> + <CallView + v-show="isInCall" + :token="token" + :use-constrained-layout="true" /> + <PreventUnload :when="isInCall" /> + </div> </template> <script> import { PARTICIPANT } from './constants' import CallView from './components/CallView/CallView' +import PreventUnload from 'vue-prevent-unload' export default { @@ -35,6 +39,7 @@ export default { components: { CallView, + PreventUnload, }, data() { |