@bigbinary/neeto-message-templates-frontend 1.0.0 → 1.0.1
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/dist/index.cjs.js +4 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +14 -12
package/dist/index.cjs.js
CHANGED
|
@@ -3518,6 +3518,7 @@ var MessageTemplates = function MessageTemplates(_ref) {
|
|
|
3518
3518
|
templateType: value
|
|
3519
3519
|
});
|
|
3520
3520
|
}, [value]);
|
|
3521
|
+
var shouldShowTemplatesCount = !isLoading && (isFilterApplied || templatesCount > 0);
|
|
3521
3522
|
return /*#__PURE__*/jsxRuntime.jsxs(Container__default["default"], {
|
|
3522
3523
|
children: [/*#__PURE__*/jsxRuntime.jsx(NeetoHeader__default["default"], {
|
|
3523
3524
|
breadcrumbs: breadcrumbs,
|
|
@@ -3539,7 +3540,7 @@ var MessageTemplates = function MessageTemplates(_ref) {
|
|
|
3539
3540
|
})]
|
|
3540
3541
|
})
|
|
3541
3542
|
}), /*#__PURE__*/jsxRuntime.jsx(SubHeader__default["default"], {
|
|
3542
|
-
leftActionBlock: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
3543
|
+
leftActionBlock: shouldShowTemplatesCount && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
3543
3544
|
component: "h4",
|
|
3544
3545
|
children: t("neetoMessageTemplate.template.messageTemplatesWithCount", {
|
|
3545
3546
|
type: MESSAGE_TYPES[type],
|
|
@@ -4402,6 +4403,7 @@ var ApiTemplates = function ApiTemplates(_ref) {
|
|
|
4402
4403
|
type: title
|
|
4403
4404
|
})
|
|
4404
4405
|
});
|
|
4406
|
+
var shouldShowTemplatesCount = !isLoading && (isFilterApplied || totalCount > 0);
|
|
4405
4407
|
return /*#__PURE__*/jsxRuntime.jsxs(Container__default["default"], {
|
|
4406
4408
|
children: [/*#__PURE__*/jsxRuntime.jsx(NeetoHeader__default["default"], {
|
|
4407
4409
|
breadcrumbs: breadcrumbs,
|
|
@@ -4428,7 +4430,7 @@ var ApiTemplates = function ApiTemplates(_ref) {
|
|
|
4428
4430
|
})]
|
|
4429
4431
|
})
|
|
4430
4432
|
}), /*#__PURE__*/jsxRuntime.jsx(SubHeader__default["default"], {
|
|
4431
|
-
leftActionBlock: /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
4433
|
+
leftActionBlock: shouldShowTemplatesCount && /*#__PURE__*/jsxRuntime.jsx(Typography__default["default"], {
|
|
4432
4434
|
component: "h4",
|
|
4433
4435
|
children: t("neetoMessageTemplate.template.messageTemplatesWithCount", {
|
|
4434
4436
|
type: t("messageType.api"),
|