@visns-studio/visns-components 5.11.13 → 5.11.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"react-dom": "^17.0.0 || ^18.0.0"
|
|
88
88
|
},
|
|
89
89
|
"name": "@visns-studio/visns-components",
|
|
90
|
-
"version": "5.11.
|
|
90
|
+
"version": "5.11.14",
|
|
91
91
|
"description": "Various packages to assist in the development of our Custom Applications.",
|
|
92
92
|
"main": "src/index.js",
|
|
93
93
|
"files": [
|
|
@@ -867,44 +867,15 @@ const DataGrid = forwardRef(
|
|
|
867
867
|
case 'file':
|
|
868
868
|
case 'image':
|
|
869
869
|
case 'undo':
|
|
870
|
-
//
|
|
871
|
-
|
|
872
|
-
s.
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
if (itemName) {
|
|
880
|
-
message += ` Item: "${itemName}"`;
|
|
881
|
-
}
|
|
882
|
-
|
|
883
|
-
// Show confirmation dialog
|
|
884
|
-
confirmDialog({
|
|
885
|
-
title: actionName,
|
|
886
|
-
message: message,
|
|
887
|
-
data: d, // Pass the row data for context
|
|
888
|
-
buttons: [
|
|
889
|
-
{
|
|
890
|
-
label: 'Yes',
|
|
891
|
-
onClick: () => {
|
|
892
|
-
CustomFetch(
|
|
893
|
-
s.url,
|
|
894
|
-
'POST',
|
|
895
|
-
{ id: d[s.key] },
|
|
896
|
-
(result) => {
|
|
897
|
-
toast.success(result.message);
|
|
898
|
-
}
|
|
899
|
-
);
|
|
900
|
-
},
|
|
901
|
-
},
|
|
902
|
-
{
|
|
903
|
-
label: 'No',
|
|
904
|
-
onClick: () => {},
|
|
905
|
-
},
|
|
906
|
-
],
|
|
907
|
-
});
|
|
870
|
+
// Execute the action directly since confirmation was already handled
|
|
871
|
+
CustomFetch(
|
|
872
|
+
s.url,
|
|
873
|
+
'POST',
|
|
874
|
+
{ id: d[s.key] },
|
|
875
|
+
(result) => {
|
|
876
|
+
toast.success(result.message);
|
|
877
|
+
}
|
|
878
|
+
);
|
|
908
879
|
break;
|
|
909
880
|
case 'clone':
|
|
910
881
|
if (s.url && s.url !== '') {
|