feat: 03 => update actionText for warnings to use general translation
This commit is contained in:
parent
095f190f99
commit
63a44e1c14
2 changed files with 13 additions and 4 deletions
|
|
@ -11,6 +11,15 @@ import { dateFormat } from 'src/utils/datetime';
|
|||
const isEdit = ref(false);
|
||||
const allMeta = ref<Record<string, string>>();
|
||||
const { t } = useI18n();
|
||||
const currentId = defineModel<string>('currentId');
|
||||
const groupList = defineModel<
|
||||
{
|
||||
label: string;
|
||||
group: string;
|
||||
value: string;
|
||||
_meta?: Record<string, any>;
|
||||
}[]
|
||||
>('groupList');
|
||||
const obj = defineModel<
|
||||
{
|
||||
_meta?: Record<string, any>;
|
||||
|
|
|
|||
|
|
@ -577,7 +577,7 @@ function employeeConfirmUnsave(close = true) {
|
|||
color: 'warning',
|
||||
icon: 'mdi-alert',
|
||||
title: t('form.warning.title'),
|
||||
actionText: t('ok'),
|
||||
actionText: t('general.ok'),
|
||||
persistent: true,
|
||||
message: t('form.warning.unsave'),
|
||||
action: () => {
|
||||
|
|
@ -604,7 +604,7 @@ function customerConfirmUnsave(close = true) {
|
|||
color: 'warning',
|
||||
icon: 'mdi-alert',
|
||||
title: t('form.warning.title'),
|
||||
actionText: t('ok'),
|
||||
actionText: t('general.ok'),
|
||||
persistent: true,
|
||||
message: t('form.warning.unsave'),
|
||||
|
||||
|
|
@ -2196,7 +2196,7 @@ const emptyCreateDialog = ref(false);
|
|||
color: 'warning',
|
||||
icon: 'mdi-alert',
|
||||
title: t('dialog.title.incompleteDataEntry'),
|
||||
actionText: t('ok'),
|
||||
actionText: t('general.ok'),
|
||||
persistent: true,
|
||||
message: t('dialog.message.incompleteDataEntry', {
|
||||
tap: `${tapIsUndefined.map((v: string) => t(`customerBranch.tab.${v}`)).join(', ')}`,
|
||||
|
|
@ -4088,7 +4088,7 @@ const emptyCreateDialog = ref(false);
|
|||
color: 'warning',
|
||||
icon: 'mdi-alert',
|
||||
title: t('dialog.title.incompleteDataEntry'),
|
||||
actionText: t('ok'),
|
||||
actionText: t('general.ok'),
|
||||
persistent: true,
|
||||
message: t('dialog.message.incompleteDataEntry', {
|
||||
tap: `${tapIsUndefined.map((v: string) => t(`customerBranch.tab.${v}`)).join(', ')}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue