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() {
|
function triggerConfirmCloseWork() {
|
||||||
dialogWarningClose(t, {
|
dialogWarningClose(t, {
|
||||||
|
message: t('dialog.message.warningClose'),
|
||||||
action: () => {
|
action: () => {
|
||||||
manageWorkNameDialog.value = false;
|
manageWorkNameDialog.value = false;
|
||||||
if (workNameItems.value[workNameItems.value.length - 1].name === '') {
|
if (workNameItems.value[workNameItems.value.length - 1].name === '') {
|
||||||
|
|
@ -4024,6 +4025,7 @@ watch(
|
||||||
() => {
|
() => {
|
||||||
if (workItems.length > 0 || !sameFormService()) {
|
if (workItems.length > 0 || !sameFormService()) {
|
||||||
dialogWarningClose($t, {
|
dialogWarningClose($t, {
|
||||||
|
message: t('dialog.message.warningClose'),
|
||||||
action: () => {
|
action: () => {
|
||||||
clearFormService();
|
clearFormService();
|
||||||
dialogService = false;
|
dialogService = false;
|
||||||
|
|
@ -4363,6 +4365,7 @@ watch(
|
||||||
() => {
|
() => {
|
||||||
if (!sameFormService()) {
|
if (!sameFormService()) {
|
||||||
dialogWarningClose($t, {
|
dialogWarningClose($t, {
|
||||||
|
message: t('dialog.message.warningClose'),
|
||||||
action: () => {
|
action: () => {
|
||||||
clearFormService();
|
clearFormService();
|
||||||
dialogService = false;
|
dialogService = false;
|
||||||
|
|
|
||||||
|
|
@ -67,8 +67,8 @@ export function dialogWarningClose(
|
||||||
color: 'warning',
|
color: 'warning',
|
||||||
icon: 'mdi-alert',
|
icon: 'mdi-alert',
|
||||||
title: t('form.warning.title'),
|
title: t('form.warning.title'),
|
||||||
actionText: opts.actionText || t('dialog.action.close'),
|
actionText: opts.actionText || t('dialog.action.ok'),
|
||||||
message: opts.message || t('dialog.message.warningClose'),
|
message: opts.message || t('dialog.message.close'),
|
||||||
action: async () => {
|
action: async () => {
|
||||||
if (opts.action) opts.action();
|
if (opts.action) opts.action();
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue