feat: add action text to confirmation dialogs
This commit is contained in:
parent
99d2f0da42
commit
8dd36cbc64
3 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,7 @@ async function fetchStats() {
|
|||
function triggerCancel(id: string) {
|
||||
dialogWarningClose(t, {
|
||||
message: t('form.warning.cancel'),
|
||||
actionText: t('dialog.action.ok'),
|
||||
action: async () => {
|
||||
const res = await requestListStore.cancelRequest(id);
|
||||
if (res) {
|
||||
|
|
|
|||
|
|
@ -467,6 +467,7 @@ async function getFileList(taskId: string) {
|
|||
async function remove(taskId: string, n: string) {
|
||||
dialogWarningClose(t, {
|
||||
message: t('dialog.message.confirmDelete'),
|
||||
actionText: t('dialog.action.ok'),
|
||||
action: async () => {
|
||||
const res = await taskOrderStore.delAttachment({
|
||||
parentId: taskId,
|
||||
|
|
@ -1080,6 +1081,7 @@ watch([currentFormData.value.taskStatus], () => {
|
|||
@click="
|
||||
dialogWarningClose(t, {
|
||||
message: t('dialog.message.confirmValidate'),
|
||||
actionText: $t('dialog.action.ok'),
|
||||
action: async () => {
|
||||
await completeValidate();
|
||||
},
|
||||
|
|
|
|||
|
|
@ -705,6 +705,7 @@ watch([currentFormData.value.taskStatus], () => {
|
|||
@click="
|
||||
dialogWarningClose($t, {
|
||||
message: $t('dialog.message.confirmSending'),
|
||||
actionText: $t('dialog.action.ok'),
|
||||
action: async () => {
|
||||
await sendTask();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue