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
@keyup.space.prevent
@input="numberInputChanged"
@keyup.enter="startCall"
>
<template
v-slot:prepend
@ -128,6 +129,11 @@ export default {
},
removeAll () {
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: {
start (context, localMedia) {
const number = context.getters.callNumberInput
const number = context.getters.callNumberInput.replaceAll('(', '')
.replaceAll(')', '')
.replaceAll(' ', '')
.replaceAll('-', '')
context.commit('startCalling', number)
Promise.resolve().then(() => {
return Vue.$call.createLocalMedia(localMedia)

Loading…
Cancel
Save