@bigbinary/neeto-themes-frontend 3.1.30 → 3.1.32
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.
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"deleteTheme": "Confirm theme deletion"
|
|
48
48
|
},
|
|
49
49
|
"message": {
|
|
50
|
+
"deleteTheme": "You are permanently deleting the theme \"{{name, anyCase}}\". Are you sure you want to proceed? {{entityType, anyCase}} using this theme would fall back to using the default theme \"{{defaultThemeName, anyCase}}\".",
|
|
50
51
|
"deleteTheme_zero": "You are permanently deleting the theme \"{{name, anyCase}}\". Are you sure you want to proceed?",
|
|
51
52
|
"deleteTheme_one": "You are permanently deleting the theme \"{{name, anyCase}}\". This theme is being used in one {{entityType}}. {{entityType, anyCase}} using this theme would fall back to using the default theme \"{{defaultThemeName, anyCase}}\". Are you sure you want to proceed?",
|
|
52
53
|
"deleteTheme_other": "You are permanently deleting the theme \"{{name, anyCase}}\". This theme is being used in {{count}} {{entityType}}. {{entityType, anyCase}} using this theme would fall back to using the default theme \"{{defaultThemeName, anyCase}}\". Are you sure you want to proceed?"
|
|
@@ -1629,8 +1629,7 @@ var Card = function Card(_ref) {
|
|
|
1629
1629
|
var _useTranslation = useTranslation(),
|
|
1630
1630
|
t = _useTranslation.t;
|
|
1631
1631
|
var id = theme.id,
|
|
1632
|
-
name = theme.name
|
|
1633
|
-
appliedCount = theme.appliedCount;
|
|
1632
|
+
name = theme.name;
|
|
1634
1633
|
var handleCloneTheme = function handleCloneTheme() {
|
|
1635
1634
|
return onCloneTheme(theme);
|
|
1636
1635
|
};
|
|
@@ -1638,7 +1637,7 @@ var Card = function Card(_ref) {
|
|
|
1638
1637
|
return onEditTheme(theme);
|
|
1639
1638
|
};
|
|
1640
1639
|
var handleDeleteTheme = function handleDeleteTheme() {
|
|
1641
|
-
return onDeleteTheme(id, name
|
|
1640
|
+
return onDeleteTheme(id, name);
|
|
1642
1641
|
};
|
|
1643
1642
|
var handleApplyGlobalTheme = function handleApplyGlobalTheme() {
|
|
1644
1643
|
return onApplyGlobalTheme(id);
|
|
@@ -1888,6 +1887,7 @@ var Themes = function Themes(_ref) {
|
|
|
1888
1887
|
}), isEmpty(filteredThemes) && isEmpty(filteredDefaultThemes) && /*#__PURE__*/jsx(Typography, {
|
|
1889
1888
|
className: "text-center",
|
|
1890
1889
|
style: "body2",
|
|
1890
|
+
"data-cy": "no-data-title",
|
|
1891
1891
|
children: t("neetoThemes.common.noResultsFound")
|
|
1892
1892
|
}), isNotEmpty(filteredDefaultThemes) && /*#__PURE__*/jsxs(Fragment, {
|
|
1893
1893
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
@@ -2043,7 +2043,7 @@ var TitleBar = function TitleBar(_ref) {
|
|
|
2043
2043
|
|
|
2044
2044
|
var MemoizedAlert = /*#__PURE__*/memo(Alert);
|
|
2045
2045
|
var Sidebar = function Sidebar(_ref) {
|
|
2046
|
-
var _themeToDelete$curren2
|
|
2046
|
+
var _themeToDelete$curren2;
|
|
2047
2047
|
var thumbnail = _ref.thumbnail,
|
|
2048
2048
|
onPropertiesChange = _ref.onPropertiesChange,
|
|
2049
2049
|
defaultImageSize = _ref.defaultImageSize,
|
|
@@ -2186,12 +2186,11 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2186
2186
|
themeToEdit.current = updatedTheme;
|
|
2187
2187
|
onUpdateThemeSuccess === null || onUpdateThemeSuccess === void 0 || onUpdateThemeSuccess(updatedTheme);
|
|
2188
2188
|
};
|
|
2189
|
-
var handleDelete = function handleDelete(themeId, name
|
|
2189
|
+
var handleDelete = function handleDelete(themeId, name) {
|
|
2190
2190
|
setIsDeleteAlertOpen(true);
|
|
2191
2191
|
themeToDelete.current = {
|
|
2192
2192
|
id: themeId,
|
|
2193
|
-
name: name
|
|
2194
|
-
appliedCount: appliedCount
|
|
2193
|
+
name: name
|
|
2195
2194
|
};
|
|
2196
2195
|
};
|
|
2197
2196
|
var handleCloseDeleteAlert = useCallback(function () {
|
|
@@ -2285,11 +2284,8 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2285
2284
|
title: t("neetoThemes.alerts.title.deleteTheme"),
|
|
2286
2285
|
message: t("neetoThemes.alerts.message.deleteTheme", {
|
|
2287
2286
|
name: (_themeToDelete$curren2 = themeToDelete.current) === null || _themeToDelete$curren2 === void 0 ? void 0 : _themeToDelete$curren2.name,
|
|
2288
|
-
count: (_themeToDelete$curren3 = themeToDelete.current) === null || _themeToDelete$curren3 === void 0 ? void 0 : _themeToDelete$curren3.appliedCount,
|
|
2289
2287
|
defaultThemeName: defaultThemeName,
|
|
2290
|
-
entityType: t("neetoThemes.entityType.".concat(entityType.toLowerCase())
|
|
2291
|
-
count: (_themeToDelete$curren4 = themeToDelete.current) === null || _themeToDelete$curren4 === void 0 ? void 0 : _themeToDelete$curren4.appliedCount
|
|
2292
|
-
})
|
|
2288
|
+
entityType: t("neetoThemes.entityType.".concat(entityType.toLowerCase()))
|
|
2293
2289
|
}),
|
|
2294
2290
|
onClose: handleCloseDeleteAlert,
|
|
2295
2291
|
onSubmit: handleDeleteTheme
|