fix(04): no work name duplicate
This commit is contained in:
parent
0a861a7aaa
commit
e2b30f9c1c
5 changed files with 93 additions and 56 deletions
|
|
@ -1193,19 +1193,22 @@ async function submitGroup() {
|
|||
flowStore.rotate();
|
||||
}
|
||||
|
||||
function confirmDeleteWork(id: string) {
|
||||
dialog({
|
||||
color: 'negative',
|
||||
icon: 'mdi-alert',
|
||||
title: t('dialog.title.confirmDelete'),
|
||||
actionText: t('general.delete'),
|
||||
message: t('dialog.message.confirmDelete'),
|
||||
action: async () => {
|
||||
deleteWork(id);
|
||||
flowStore.rotate();
|
||||
},
|
||||
cancel: () => {},
|
||||
});
|
||||
function confirmDeleteWork(id: string, noDialog?: boolean) {
|
||||
if (noDialog) {
|
||||
deleteWork(id);
|
||||
} else
|
||||
dialog({
|
||||
color: 'negative',
|
||||
icon: 'mdi-alert',
|
||||
title: t('dialog.title.confirmDelete'),
|
||||
actionText: t('general.delete'),
|
||||
message: t('dialog.message.confirmDelete'),
|
||||
action: async () => {
|
||||
deleteWork(id);
|
||||
flowStore.rotate();
|
||||
},
|
||||
cancel: () => {},
|
||||
});
|
||||
}
|
||||
|
||||
function triggerConfirmCloseWork() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue