@dhis2/analytics 24.3.12 → 24.3.13

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/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [24.3.13](https://github.com/dhis2/analytics/compare/v24.3.12...v24.3.13) (2022-12-29)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * prevent escaping old name on save as ([#1405](https://github.com/dhis2/analytics/issues/1405)) ([639dc45](https://github.com/dhis2/analytics/commit/639dc45001d0d8b9a0784ffefc96bdbc45271ae3))
7
+
1
8
  ## [24.3.12](https://github.com/dhis2/analytics/compare/v24.3.11...v24.3.12) (2022-12-22)
2
9
 
3
10
 
@@ -30,7 +30,7 @@ const SaveAsDialog = _ref => {
30
30
  onClose,
31
31
  onSaveAs
32
32
  } = _ref;
33
- const [name, setName] = (0, _react.useState)(object !== null && object !== void 0 && object.displayName || object !== null && object !== void 0 && object.name ? _index.default.t('{{objectName}} (copy)', {
33
+ const [name, setName] = (0, _react.useState)(object !== null && object !== void 0 && object.displayName || object !== null && object !== void 0 && object.name ? _index.default.t('{{- objectName}} (copy)', {
34
34
  objectName: object.name
35
35
  }) : '');
36
36
  const [description, setDescription] = (0, _react.useState)(object === null || object === void 0 ? void 0 : object.description); // the actual API request is done in the app
@@ -81,7 +81,7 @@
81
81
  "Name": "Name",
82
82
  "Description": "Description",
83
83
  "Rename": "Rename",
84
- "{{objectName}} (copy)": "{{objectName}} (copy)",
84
+ "{{- objectName}} (copy)": "{{- objectName}} (copy)",
85
85
  "Save {{fileType}} as": "Save {{fileType}} as",
86
86
  "event report": "event report",
87
87
  "line list": "line list",
@@ -11,7 +11,7 @@ export const SaveAsDialog = _ref => {
11
11
  onClose,
12
12
  onSaveAs
13
13
  } = _ref;
14
- const [name, setName] = useState(object !== null && object !== void 0 && object.displayName || object !== null && object !== void 0 && object.name ? i18n.t('{{objectName}} (copy)', {
14
+ const [name, setName] = useState(object !== null && object !== void 0 && object.displayName || object !== null && object !== void 0 && object.name ? i18n.t('{{- objectName}} (copy)', {
15
15
  objectName: object.name
16
16
  }) : '');
17
17
  const [description, setDescription] = useState(object === null || object === void 0 ? void 0 : object.description); // the actual API request is done in the app
@@ -81,7 +81,7 @@
81
81
  "Name": "Name",
82
82
  "Description": "Description",
83
83
  "Rename": "Rename",
84
- "{{objectName}} (copy)": "{{objectName}} (copy)",
84
+ "{{- objectName}} (copy)": "{{- objectName}} (copy)",
85
85
  "Save {{fileType}} as": "Save {{fileType}} as",
86
86
  "event report": "event report",
87
87
  "line list": "line list",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dhis2/analytics",
3
- "version": "24.3.12",
3
+ "version": "24.3.13",
4
4
  "main": "./build/cjs/index.js",
5
5
  "module": "./build/es/index.js",
6
6
  "exports": {