TT#39593 [Issue] Call: Unable to open right drawer again after resizing and swiping it away

Change-Id: I895bee8b26c68a56ebba13d56f5b85fb9cad2f1c
changes/10/22410/1
Hans-Peter Herzog 7 years ago
parent 3aec25e93e
commit 54c1b07b61

@ -272,6 +272,7 @@
this.$store.commit('layout/toggleFullscreen'); this.$store.commit('layout/toggleFullscreen');
}, },
call() { call() {
this.$refs.layout.showRight();
this.$store.dispatch('call/showCall'); this.$store.dispatch('call/showCall');
}, },
logout() { logout() {
@ -291,6 +292,7 @@
} }
}, },
closeCall() { closeCall() {
this.$refs.layout.hideRight();
this.$store.commit('layout/hideRight'); this.$store.commit('layout/hideRight');
}, },
applyLayout() { applyLayout() {

@ -76,6 +76,7 @@
mounted() { mounted() {
this.$store.commit('conversations/resetList'); this.$store.commit('conversations/resetList');
}, },
inject: ['layout'],
computed: { computed: {
...mapGetters('conversations', [ ...mapGetters('conversations', [
'items', 'items',
@ -106,6 +107,7 @@
this.$store.dispatch('conversations/nextPage'); this.$store.dispatch('conversations/nextPage');
}, },
initCall(call) { initCall(call) {
this.layout.showRight();
this.$store.dispatch('call/start', { this.$store.dispatch('call/start', {
number: call.number, number: call.number,
localMedia: call.media localMedia: call.media

@ -116,6 +116,7 @@
QCardActions, QCardActions,
QIcon QIcon
}, },
inject: ['layout'],
mounted() { mounted() {
scroll.setScrollPosition(this.$el, 0, 100); scroll.setScrollPosition(this.$el, 0, 100);
}, },
@ -140,6 +141,7 @@
methods: { methods: {
call() { call() {
if(this.isCallAvailable) { if(this.isCallAvailable) {
this.layout.showRight();
this.$store.dispatch('call/showCall'); this.$store.dispatch('call/showCall');
} }
else { else {
@ -148,6 +150,7 @@
}, },
screenShare() { screenShare() {
if(this.isCallAvailable && !this.isMobile) { if(this.isCallAvailable && !this.isMobile) {
this.layout.showRight();
this.$store.dispatch('call/showCall'); this.$store.dispatch('call/showCall');
} }
else { else {

Loading…
Cancel
Save