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)