fix: removed reload button and code
This commit is contained in:
parent
332bffdf9f
commit
5ad95460e5
@ -36,15 +36,6 @@
|
|||||||
<span>{{ __('New Task') }}</span>
|
<span>{{ __('New Task') }}</span>
|
||||||
</Button>
|
</Button>
|
||||||
<div class="flex gap-2" v-else-if="title == 'WhatsApp'">
|
<div class="flex gap-2" v-else-if="title == 'WhatsApp'">
|
||||||
<Button
|
|
||||||
:label="__('Refresh')"
|
|
||||||
@click="whatsappMessages.reload()"
|
|
||||||
:loading="whatsappMessages.loading"
|
|
||||||
>
|
|
||||||
<template #icon>
|
|
||||||
<RefreshIcon class="h-4 w-4" />
|
|
||||||
</template>
|
|
||||||
</Button>
|
|
||||||
<Button
|
<Button
|
||||||
:label="__('Send Template')"
|
:label="__('Send Template')"
|
||||||
@click="showWhatsappTemplates = true"
|
@click="showWhatsappTemplates = true"
|
||||||
@ -981,9 +972,6 @@ function sendTemplate(template) {
|
|||||||
template,
|
template,
|
||||||
},
|
},
|
||||||
auto: true,
|
auto: true,
|
||||||
onSuccess() {
|
|
||||||
whatsappMessages.reload()
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -123,7 +123,6 @@ async function sendWhatsAppMessage() {
|
|||||||
url: 'crm.api.whatsapp.create_whatsapp_message',
|
url: 'crm.api.whatsapp.create_whatsapp_message',
|
||||||
params: args,
|
params: args,
|
||||||
auto: true,
|
auto: true,
|
||||||
onSuccess: () => nextTick(() => whatsapp.value?.reload()),
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user