refactor(cloneItem): simplify dialog invocation by removing unnecessary chaining
gitea/salix-front/pipeline/pr-master This commit looks good
Details
gitea/salix-front/pipeline/pr-master This commit looks good
Details
This commit is contained in:
parent
650b205a04
commit
0af58c0536
|
@ -16,16 +16,14 @@ export function cloneItem() {
|
||||||
};
|
};
|
||||||
|
|
||||||
const openCloneDialog = async (entityId) => {
|
const openCloneDialog = async (entityId) => {
|
||||||
quasar
|
quasar.dialog({
|
||||||
.dialog({
|
|
||||||
component: VnConfirm,
|
component: VnConfirm,
|
||||||
componentProps: {
|
componentProps: {
|
||||||
title: t('item.descriptor.clone.title'),
|
title: t('item.descriptor.clone.title'),
|
||||||
message: t('item.descriptor.clone.subTitle'),
|
message: t('item.descriptor.clone.subTitle'),
|
||||||
promise: () => cloneItem(entityId),
|
promise: () => cloneItem(entityId),
|
||||||
},
|
},
|
||||||
})
|
});
|
||||||
.onOk(() => {});
|
|
||||||
};
|
};
|
||||||
return { openCloneDialog };
|
return { openCloneDialog };
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue