feat(automations): add test run button and send log modal in admin
Expose run-now and sends APIs in the automations UI, show SMS hour and last run columns, and group advanced settings toolbar actions together. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -50,6 +50,24 @@
|
||||
</template>
|
||||
<template #action="{ record }">
|
||||
<div class="flex justify-center gap-2">
|
||||
<a-tooltip placement="bottom">
|
||||
<template #title>اجرای آزمایشی</template>
|
||||
<Icon
|
||||
icon="vuesax-linear:play"
|
||||
color="#16a34a"
|
||||
class="cursor-pointer"
|
||||
@click="emits('runNow', record)"
|
||||
/>
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="bottom">
|
||||
<template #title>لاگ ارسال</template>
|
||||
<Icon
|
||||
icon="vuesax-linear:document-text"
|
||||
color="#64748b"
|
||||
class="cursor-pointer"
|
||||
@click="emits('sends', record)"
|
||||
/>
|
||||
</a-tooltip>
|
||||
<a-tooltip placement="bottom">
|
||||
<template #title>ویرایش</template>
|
||||
<Icon
|
||||
@@ -93,6 +111,8 @@ const emits = defineEmits<{
|
||||
edit: [record: Automation]
|
||||
toggle: [record: Automation]
|
||||
delete: [id: number]
|
||||
runNow: [record: Automation]
|
||||
sends: [record: Automation]
|
||||
}>()
|
||||
|
||||
const tblProps = {
|
||||
|
||||
Reference in New Issue
Block a user