@truedat/df 7.5.10 → 7.5.12
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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@truedat/df",
|
|
3
|
-
"version": "7.5.
|
|
3
|
+
"version": "7.5.12",
|
|
4
4
|
"description": "Truedat Web Data Quality Module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"module": "src/index.js",
|
|
@@ -46,36 +46,36 @@
|
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@testing-library/dom": "^10.4.0",
|
|
48
48
|
"@testing-library/jest-dom": "^6.6.3",
|
|
49
|
-
"@testing-library/react": "^16.
|
|
49
|
+
"@testing-library/react": "^16.3.0",
|
|
50
50
|
"@testing-library/user-event": "^14.6.1",
|
|
51
|
-
"@truedat/test": "7.5.
|
|
51
|
+
"@truedat/test": "7.5.12",
|
|
52
52
|
"identity-obj-proxy": "^3.0.0",
|
|
53
53
|
"jest": "^29.7.0",
|
|
54
54
|
"redux-saga-test-plan": "^4.0.6"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@apollo/client": "^3.13.
|
|
58
|
-
"@truedat/core": "7.5.
|
|
59
|
-
"axios": "^1.
|
|
60
|
-
"graphql": "^16.
|
|
57
|
+
"@apollo/client": "^3.13.8",
|
|
58
|
+
"@truedat/core": "7.5.12",
|
|
59
|
+
"axios": "^1.9.0",
|
|
60
|
+
"graphql": "^16.11.0",
|
|
61
61
|
"is-hotkey": "^0.2.0",
|
|
62
62
|
"is-url": "^1.2.4",
|
|
63
63
|
"lodash": "^4.17.21",
|
|
64
|
-
"match-sorter": "^8.0.
|
|
64
|
+
"match-sorter": "^8.0.1",
|
|
65
65
|
"moment": "^2.30.1",
|
|
66
66
|
"path-to-regexp": "^8.2.0",
|
|
67
67
|
"prop-types": "^15.8.1",
|
|
68
|
-
"query-string": "^7.1.
|
|
69
|
-
"react": "^19.
|
|
68
|
+
"query-string": "^7.1.3",
|
|
69
|
+
"react": "^19.1.0",
|
|
70
70
|
"react-color": "^2.19.3",
|
|
71
71
|
"react-csv": "^2.2.2",
|
|
72
|
-
"react-dom": "^19.
|
|
72
|
+
"react-dom": "^19.1.0",
|
|
73
73
|
"react-dropzone": "^14.3.8",
|
|
74
|
-
"react-hook-form": "^7.
|
|
75
|
-
"react-intl": "^7.1.
|
|
74
|
+
"react-hook-form": "^7.56.4",
|
|
75
|
+
"react-intl": "^7.1.11",
|
|
76
76
|
"react-moment": "^1.1.3",
|
|
77
77
|
"react-redux": "^9.2.0",
|
|
78
|
-
"react-router": "^7.
|
|
78
|
+
"react-router": "^7.6.0",
|
|
79
79
|
"react-sortable-hoc": "^2.0.0",
|
|
80
80
|
"redux": "^5.0.1",
|
|
81
81
|
"redux-saga": "^1.3.0",
|
|
@@ -85,5 +85,5 @@
|
|
|
85
85
|
"semantic-ui-react": "^3.0.0-beta.2",
|
|
86
86
|
"swr": "^2.3.3"
|
|
87
87
|
},
|
|
88
|
-
"gitHead": "
|
|
88
|
+
"gitHead": "1476061ceb9ed15e0bacec71e20d695a0cd57986"
|
|
89
89
|
}
|
|
@@ -10,8 +10,10 @@ import {
|
|
|
10
10
|
Container,
|
|
11
11
|
} from "semantic-ui-react";
|
|
12
12
|
import { connect } from "react-redux";
|
|
13
|
+
import { useNavigate } from "react-router";
|
|
13
14
|
import { ConfirmModal } from "@truedat/core/components";
|
|
14
15
|
import { deleteTemplate, updateTemplate } from "../routines";
|
|
16
|
+
import { TEMPLATES } from "@truedat/core/routes";
|
|
15
17
|
import TemplateCrumbs from "./TemplateCrumbs";
|
|
16
18
|
import TemplateForm from "./templateForm/TemplateForm";
|
|
17
19
|
|
|
@@ -22,7 +24,14 @@ export const Template = ({
|
|
|
22
24
|
templateDeleting,
|
|
23
25
|
templateSaving,
|
|
24
26
|
}) => {
|
|
27
|
+
const navigate = useNavigate();
|
|
25
28
|
const { formatMessage } = useIntl();
|
|
29
|
+
|
|
30
|
+
const onConfirmDelete = async (template) => {
|
|
31
|
+
await deleteTemplate(template);
|
|
32
|
+
navigate(TEMPLATES);
|
|
33
|
+
};
|
|
34
|
+
|
|
26
35
|
return _.isUndefined(template.id) ? null : (
|
|
27
36
|
<>
|
|
28
37
|
<TemplateCrumbs name={template?.label} />
|
|
@@ -68,7 +77,7 @@ export const Template = ({
|
|
|
68
77
|
values={{ name: <i>{template.name}</i> }}
|
|
69
78
|
/>
|
|
70
79
|
}
|
|
71
|
-
onConfirm={() =>
|
|
80
|
+
onConfirm={() => onConfirmDelete(template)}
|
|
72
81
|
/>
|
|
73
82
|
)}
|
|
74
83
|
</Container>
|