TT#128651 copy&paste number to dial, removing spaces and () and pressing enter to make a voice call.

Change-Id: Ic815c9032920ad18e84758792b3f414c896009ff
mr10.1.1
Hugo Zigha 4 years ago committed by Hugo Zigha
parent 9365f72876
commit ca6976374f

@ -24,6 +24,7 @@
@keydown.space.prevent @keydown.space.prevent
@keyup.space.prevent @keyup.space.prevent
@input="numberInputChanged" @input="numberInputChanged"
@keyup.enter="startCall"
> >
<template <template
v-slot:prepend v-slot:prepend
@ -128,6 +129,11 @@ export default {
}, },
removeAll () { removeAll () {
this.$store.commit('call/numberInputChanged', '') this.$store.commit('call/numberInputChanged', '')
},
startCall () {
if (this.callNumberInput !== '' && this.callNumberInput !== null) {
this.$store.dispatch('call/start', 'audioOnly')
}
} }
} }
} }

@ -308,7 +308,10 @@ export default {
}, },
actions: { actions: {
start (context, localMedia) { start (context, localMedia) {
const number = context.getters.callNumberInput const number = context.getters.callNumberInput.replaceAll('(', '')
.replaceAll(')', '')
.replaceAll(' ', '')
.replaceAll('-', '')
context.commit('startCalling', number) context.commit('startCalling', number)
Promise.resolve().then(() => { Promise.resolve().then(() => {
return Vue.$call.createLocalMedia(localMedia) return Vue.$call.createLocalMedia(localMedia)

Loading…
Cancel
Save