@bigbinary/neeto-themes-frontend 3.1.31 → 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);
|
|
@@ -2044,7 +2043,7 @@ var TitleBar = function TitleBar(_ref) {
|
|
|
2044
2043
|
|
|
2045
2044
|
var MemoizedAlert = /*#__PURE__*/memo(Alert);
|
|
2046
2045
|
var Sidebar = function Sidebar(_ref) {
|
|
2047
|
-
var _themeToDelete$curren2
|
|
2046
|
+
var _themeToDelete$curren2;
|
|
2048
2047
|
var thumbnail = _ref.thumbnail,
|
|
2049
2048
|
onPropertiesChange = _ref.onPropertiesChange,
|
|
2050
2049
|
defaultImageSize = _ref.defaultImageSize,
|
|
@@ -2187,12 +2186,11 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2187
2186
|
themeToEdit.current = updatedTheme;
|
|
2188
2187
|
onUpdateThemeSuccess === null || onUpdateThemeSuccess === void 0 || onUpdateThemeSuccess(updatedTheme);
|
|
2189
2188
|
};
|
|
2190
|
-
var handleDelete = function handleDelete(themeId, name
|
|
2189
|
+
var handleDelete = function handleDelete(themeId, name) {
|
|
2191
2190
|
setIsDeleteAlertOpen(true);
|
|
2192
2191
|
themeToDelete.current = {
|
|
2193
2192
|
id: themeId,
|
|
2194
|
-
name: name
|
|
2195
|
-
appliedCount: appliedCount
|
|
2193
|
+
name: name
|
|
2196
2194
|
};
|
|
2197
2195
|
};
|
|
2198
2196
|
var handleCloseDeleteAlert = useCallback(function () {
|
|
@@ -2286,11 +2284,8 @@ var Sidebar = function Sidebar(_ref) {
|
|
|
2286
2284
|
title: t("neetoThemes.alerts.title.deleteTheme"),
|
|
2287
2285
|
message: t("neetoThemes.alerts.message.deleteTheme", {
|
|
2288
2286
|
name: (_themeToDelete$curren2 = themeToDelete.current) === null || _themeToDelete$curren2 === void 0 ? void 0 : _themeToDelete$curren2.name,
|
|
2289
|
-
count: (_themeToDelete$curren3 = themeToDelete.current) === null || _themeToDelete$curren3 === void 0 ? void 0 : _themeToDelete$curren3.appliedCount,
|
|
2290
2287
|
defaultThemeName: defaultThemeName,
|
|
2291
|
-
entityType: t("neetoThemes.entityType.".concat(entityType.toLowerCase())
|
|
2292
|
-
count: (_themeToDelete$curren4 = themeToDelete.current) === null || _themeToDelete$curren4 === void 0 ? void 0 : _themeToDelete$curren4.appliedCount
|
|
2293
|
-
})
|
|
2288
|
+
entityType: t("neetoThemes.entityType.".concat(entityType.toLowerCase()))
|
|
2294
2289
|
}),
|
|
2295
2290
|
onClose: handleCloseDeleteAlert,
|
|
2296
2291
|
onSubmit: handleDeleteTheme
|