feat: refs #6818 saysimple integration #904

Merged
jorgep merged 11 commits from 6818-saySimpleIntegration into dev 2024-11-13 08:25:27 +00:00
1 changed files with 2 additions and 3 deletions
Showing only changes of commit 83be57a0c4 - Show all commits

View File

@ -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
Outdated
Review

quitar comentario?

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

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
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
Outdated
Review

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
Outdated
Review

es lo mismo que poner if (type === 'say-simple') directamente jaja

es lo mismo que poner if (type === 'say-simple') directamente jaja

Tiene usted razón

Tiene usted razón
if (!channel)
channel = (