feat: refs #6818 saysimple integration #904
|
@ -9,7 +9,7 @@ const props = defineProps({
|
|||
const config = reactive({
|
||||
sip: { icon: 'phone', href: `sip:${props.phoneNumber}` },
|
||||
'say-simple': {
|
||||
icon: 'help', // 'whatsapp icon #6818',
|
||||
icon: 'help',
|
||||
jorgep marked this conversation as resolved
Outdated
|
||||
href: null,
|
||||
channel: props.channel,
|
||||
},
|
||||
|
@ -20,8 +20,7 @@ onBeforeMount(async () => {
|
|||
let url;
|
||||
let { channel } = config[type];
|
||||
|
||||
if (type === 'sip') return;
|
||||
else if (type === 'say-simple') {
|
||||
if (type === 'say-simple') {
|
||||
jorgep marked this conversation as resolved
Outdated
alexm
commented
Y si el tipo no es say-simple igualmente le pone el canal? Y si el tipo no es say-simple igualmente le pone el canal?
|
||||
url = (await axios.get('SaySimpleConfigs/findOne')).data.url;
|
||||
jorgep marked this conversation as resolved
Outdated
alexm
commented
es lo mismo que poner if (type === 'say-simple') directamente jaja es lo mismo que poner if (type === 'say-simple') directamente jaja
jorgep
commented
Tiene usted razón Tiene usted razón
|
||||
if (!channel)
|
||||
channel = (
|
||||
|
|
Loading…
Reference in New Issue
quitar comentario?
Lo quiero dejar porque está pendiente. Cuando Paco rico lo pase lo añadiré pero de momento pongo ese. Le añado el número de tarea