Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bda0c7d87c |
+4
-3
@@ -2046,6 +2046,7 @@ type TreeActionGroup = {
|
|||||||
|
|
||||||
type TreeActionRunOptions = {
|
type TreeActionRunOptions = {
|
||||||
clearSelection?: boolean;
|
clearSelection?: boolean;
|
||||||
|
consumedKeys?: any[];
|
||||||
};
|
};
|
||||||
|
|
||||||
const runActionWithPreview = async (
|
const runActionWithPreview = async (
|
||||||
@@ -2092,11 +2093,11 @@ const runActionWithPreview = async (
|
|||||||
await Swal.fire({
|
await Swal.fire({
|
||||||
title: treeText("success.title", "Handling udført"),
|
title: treeText("success.title", "Handling udført"),
|
||||||
icon: "success",
|
icon: "success",
|
||||||
timer: 1400,
|
timer: 600,
|
||||||
showConfirmButton: false,
|
showConfirmButton: false,
|
||||||
});
|
});
|
||||||
if (activeSnapshot.value) {
|
if (activeSnapshot.value) {
|
||||||
await refreshSnapshotAfterMutation();
|
await refreshSnapshotAfterMutation({ consumedKeys: options.consumedKeys ?? [] });
|
||||||
}
|
}
|
||||||
emit("refresh");
|
emit("refresh");
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
@@ -2570,7 +2571,7 @@ const deleteOrderItems = (ids: any[] = orderItemIds(), options: TreeActionRunOpt
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
true,
|
true,
|
||||||
options
|
{ ...options, consumedKeys: ids.map((id) => makeNodeId(TREE_NODE_TYPES.ORDER_ITEM, id)) }
|
||||||
);
|
);
|
||||||
|
|
||||||
const deleteSelectedOrderItems = () => deleteOrderItems(orderItemIds());
|
const deleteSelectedOrderItems = () => deleteOrderItems(orderItemIds());
|
||||||
|
|||||||
Reference in New Issue
Block a user