From cf15c25ef480018a5b88aac1fb81ba81eef5e245 Mon Sep 17 00:00:00 2001 From: nidrissi-zouggari Date: Wed, 21 Jan 2026 14:52:11 +0100 Subject: [PATCH] MT#64237 Fix resizeObserver loop error Change-Id: I51e9da30246604d1bc95bc0d8e40069b565c8e99 --- src/layouts/CscLayoutMain.vue | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/src/layouts/CscLayoutMain.vue b/src/layouts/CscLayoutMain.vue index 28b91c38..77f2b75b 100644 --- a/src/layouts/CscLayoutMain.vue +++ b/src/layouts/CscLayoutMain.vue @@ -302,7 +302,7 @@ export default { }, mobileMenu: null, customLogo: null, - menuPinnedBBeforeCall: true + menuPinnedBeforeCall: true } }, computed: { @@ -470,18 +470,10 @@ export default { watch: { callState (state) { if (state === 'established') { - this.menuPinnedBBeforeCall = this.menuPinned - this.menuPinned = false + this.menuPinnedBeforeCall = this.menuPinned this.menuMinimized = true - this.header = true } else if (state === 'ended') { - if (this.menuPinnedBBeforeCall) { - this.menuPinned = true - this.menuMinimized = false - } - this.header = true - } else { - this.header = true + this.menuMinimized = !this.menuPinnedBeforeCall } }, route: { @@ -554,7 +546,7 @@ export default { layoutResized () { if (this.$refs.call) { this.$nextTick(() => { - this.$refs.call.fitMedia() + this.$refs.call.fitMedia() }) } }, @@ -595,11 +587,7 @@ export default { }, endCall () { this.$store.dispatch('call/end') - if (this.menuPinnedBBeforeCall) { - this.menuPinned = true - this.menuMinimized = false - this.header = true - } + this.menuMinimized = !this.menuPinnedBeforeCall }, clickDialpad (value) { this.$store.dispatch('call/sendDTMF', value)