|
|
|
@ -302,7 +302,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mobileMenu: null,
|
|
|
|
mobileMenu: null,
|
|
|
|
customLogo: null,
|
|
|
|
customLogo: null,
|
|
|
|
menuPinnedBBeforeCall: true
|
|
|
|
menuPinnedBeforeCall: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
computed: {
|
|
|
|
computed: {
|
|
|
|
@ -470,18 +470,10 @@ export default {
|
|
|
|
watch: {
|
|
|
|
watch: {
|
|
|
|
callState (state) {
|
|
|
|
callState (state) {
|
|
|
|
if (state === 'established') {
|
|
|
|
if (state === 'established') {
|
|
|
|
this.menuPinnedBBeforeCall = this.menuPinned
|
|
|
|
this.menuPinnedBeforeCall = this.menuPinned
|
|
|
|
this.menuPinned = false
|
|
|
|
|
|
|
|
this.menuMinimized = true
|
|
|
|
this.menuMinimized = true
|
|
|
|
this.header = true
|
|
|
|
|
|
|
|
} else if (state === 'ended') {
|
|
|
|
} else if (state === 'ended') {
|
|
|
|
if (this.menuPinnedBBeforeCall) {
|
|
|
|
this.menuMinimized = !this.menuPinnedBeforeCall
|
|
|
|
this.menuPinned = true
|
|
|
|
|
|
|
|
this.menuMinimized = false
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
this.header = true
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
this.header = true
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
route: {
|
|
|
|
route: {
|
|
|
|
@ -554,7 +546,7 @@ export default {
|
|
|
|
layoutResized () {
|
|
|
|
layoutResized () {
|
|
|
|
if (this.$refs.call) {
|
|
|
|
if (this.$refs.call) {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$nextTick(() => {
|
|
|
|
this.$refs.call.fitMedia()
|
|
|
|
this.$refs.call.fitMedia()
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
@ -595,11 +587,7 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
endCall () {
|
|
|
|
endCall () {
|
|
|
|
this.$store.dispatch('call/end')
|
|
|
|
this.$store.dispatch('call/end')
|
|
|
|
if (this.menuPinnedBBeforeCall) {
|
|
|
|
this.menuMinimized = !this.menuPinnedBeforeCall
|
|
|
|
this.menuPinned = true
|
|
|
|
|
|
|
|
this.menuMinimized = false
|
|
|
|
|
|
|
|
this.header = true
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
clickDialpad (value) {
|
|
|
|
clickDialpad (value) {
|
|
|
|
this.$store.dispatch('call/sendDTMF', value)
|
|
|
|
this.$store.dispatch('call/sendDTMF', value)
|
|
|
|
|