feat: update warning dialog messages for better clarity
This commit is contained in:
parent
eae2139c52
commit
1479320e96
2 changed files with 5 additions and 2 deletions
|
|
@ -1365,6 +1365,7 @@ function confirmDeleteWork(id: string, noDialog?: boolean) {
|
|||
|
||||
function triggerConfirmCloseWork() {
|
||||
dialogWarningClose(t, {
|
||||
message: t('dialog.message.warningClose'),
|
||||
action: () => {
|
||||
manageWorkNameDialog.value = false;
|
||||
if (workNameItems.value[workNameItems.value.length - 1].name === '') {
|
||||
|
|
@ -4024,6 +4025,7 @@ watch(
|
|||
() => {
|
||||
if (workItems.length > 0 || !sameFormService()) {
|
||||
dialogWarningClose($t, {
|
||||
message: t('dialog.message.warningClose'),
|
||||
action: () => {
|
||||
clearFormService();
|
||||
dialogService = false;
|
||||
|
|
@ -4363,6 +4365,7 @@ watch(
|
|||
() => {
|
||||
if (!sameFormService()) {
|
||||
dialogWarningClose($t, {
|
||||
message: t('dialog.message.warningClose'),
|
||||
action: () => {
|
||||
clearFormService();
|
||||
dialogService = false;
|
||||
|
|
|
|||
|
|
@ -67,8 +67,8 @@ export function dialogWarningClose(
|
|||
color: 'warning',
|
||||
icon: 'mdi-alert',
|
||||
title: t('form.warning.title'),
|
||||
actionText: opts.actionText || t('dialog.action.close'),
|
||||
message: opts.message || t('dialog.message.warningClose'),
|
||||
actionText: opts.actionText || t('dialog.action.ok'),
|
||||
message: opts.message || t('dialog.message.close'),
|
||||
action: async () => {
|
||||
if (opts.action) opts.action();
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue