MT#64237 Fix resizeObserver loop error

Change-Id: I51e9da30246604d1bc95bc0d8e40069b565c8e99
mr14.1
nidrissi-zouggari 5 months ago committed by Nouhaila Idrissi-Zouggari
parent 518912b90d
commit cf15c25ef4

@ -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)

Loading…
Cancel
Save