Prevent unload while in a call in the public share page

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2020-01-15 17:13:25 +01:00
Родитель be8f2d6eed
Коммит ddb0c36ccd
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -31,6 +31,7 @@
</div>
<template v-else>
<CallView v-if="isInCall" :token="token" :use-constrained-layout="true" />
<PreventUnload :when="isInCall" />
<CallButton class="call-button" />
<ChatView :token="token" />
</template>
@ -39,6 +40,7 @@
</template>
<script>
import PreventUnload from 'vue-prevent-unload'
import CallView from './components/CallView/CallView'
import ChatView from './components/ChatView'
import CallButton from './components/TopBar/CallButton'
@ -57,6 +59,7 @@ export default {
CallButton,
CallView,
ChatView,
PreventUnload,
},
props: {