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) {
|
function triggerCancel(id: string) {
|
||||||
dialogWarningClose(t, {
|
dialogWarningClose(t, {
|
||||||
message: t('form.warning.cancel'),
|
message: t('form.warning.cancel'),
|
||||||
|
actionText: t('dialog.action.ok'),
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const res = await requestListStore.cancelRequest(id);
|
const res = await requestListStore.cancelRequest(id);
|
||||||
if (res) {
|
if (res) {
|
||||||
|
|
|
||||||
|
|
@ -467,6 +467,7 @@ async function getFileList(taskId: string) {
|
||||||
async function remove(taskId: string, n: string) {
|
async function remove(taskId: string, n: string) {
|
||||||
dialogWarningClose(t, {
|
dialogWarningClose(t, {
|
||||||
message: t('dialog.message.confirmDelete'),
|
message: t('dialog.message.confirmDelete'),
|
||||||
|
actionText: t('dialog.action.ok'),
|
||||||
action: async () => {
|
action: async () => {
|
||||||
const res = await taskOrderStore.delAttachment({
|
const res = await taskOrderStore.delAttachment({
|
||||||
parentId: taskId,
|
parentId: taskId,
|
||||||
|
|
@ -1080,6 +1081,7 @@ watch([currentFormData.value.taskStatus], () => {
|
||||||
@click="
|
@click="
|
||||||
dialogWarningClose(t, {
|
dialogWarningClose(t, {
|
||||||
message: t('dialog.message.confirmValidate'),
|
message: t('dialog.message.confirmValidate'),
|
||||||
|
actionText: $t('dialog.action.ok'),
|
||||||
action: async () => {
|
action: async () => {
|
||||||
await completeValidate();
|
await completeValidate();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -705,6 +705,7 @@ watch([currentFormData.value.taskStatus], () => {
|
||||||
@click="
|
@click="
|
||||||
dialogWarningClose($t, {
|
dialogWarningClose($t, {
|
||||||
message: $t('dialog.message.confirmSending'),
|
message: $t('dialog.message.confirmSending'),
|
||||||
|
actionText: $t('dialog.action.ok'),
|
||||||
action: async () => {
|
action: async () => {
|
||||||
await sendTask();
|
await sendTask();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue