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

Loading…
Cancel
Save