MT#53241 The last state of the "Main menu" is not restored after RTCengine call

Change-Id: I2c5fd756d3f3ea74ff6ea1a1811f1045e0723591
pull/12/merge
Hugo Zigha 3 years ago
parent 256332ce7e
commit 169cfa8a50

@ -255,7 +255,8 @@ export default {
}, },
mobileMenu: null, mobileMenu: null,
faxDialog: false, faxDialog: false,
customLogo: null customLogo: null,
menuPinnedBBeforeCall: true
} }
}, },
computed: { computed: {
@ -377,9 +378,16 @@ export default {
watch: { watch: {
callState (state) { callState (state) {
if (state === 'established') { if (state === 'established') {
this.menuPinnedBBeforeCall = this.menuPinned
this.menuPinned = false this.menuPinned = false
this.menuMinimized = true this.menuMinimized = true
this.header = true this.header = true
} else if (state === 'ended') {
if (this.menuPinnedBBeforeCall) {
this.menuPinned = true
this.menuMinimized = false
}
this.header = true
} else { } else {
this.header = true this.header = true
} }
@ -493,6 +501,11 @@ export default {
}, },
endCall () { endCall () {
this.$store.dispatch('call/end') this.$store.dispatch('call/end')
if (this.menuPinnedBBeforeCall) {
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