From 169cfa8a50e636d0ca3f36ad2f9f8ce69082613e Mon Sep 17 00:00:00 2001 From: Hugo Zigha Date: Wed, 11 Jan 2023 17:59:35 +0100 Subject: [PATCH] MT#53241 The last state of the "Main menu" is not restored after RTCengine call Change-Id: I2c5fd756d3f3ea74ff6ea1a1811f1045e0723591 --- src/layouts/CscLayoutMain.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/layouts/CscLayoutMain.vue b/src/layouts/CscLayoutMain.vue index fd38b0b9..1bc984a2 100644 --- a/src/layouts/CscLayoutMain.vue +++ b/src/layouts/CscLayoutMain.vue @@ -255,7 +255,8 @@ export default { }, mobileMenu: null, faxDialog: false, - customLogo: null + customLogo: null, + menuPinnedBBeforeCall: true } }, computed: { @@ -377,9 +378,16 @@ export default { watch: { callState (state) { if (state === 'established') { + this.menuPinnedBBeforeCall = this.menuPinned this.menuPinned = false 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 } @@ -493,6 +501,11 @@ export default { }, endCall () { this.$store.dispatch('call/end') + if (this.menuPinnedBBeforeCall) { + this.menuPinned = true + this.menuMinimized = false + this.header = true + } }, clickDialpad (value) { this.$store.dispatch('call/sendDTMF', value)