@capillarytech/creatives-library 8.0.66 → 8.0.67
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
|
@@ -1444,6 +1444,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
1444
1444
|
|
|
1445
1445
|
const accountId = get(this.props, 'Templates.selectedWeChatAccount.uuid');
|
|
1446
1446
|
const accounts = get(this.props, 'Templates.weCrmAccounts');
|
|
1447
|
+
const getAllTemplatesInProgress = get(this.props, 'Templates.getAllTemplatesInProgress');
|
|
1447
1448
|
const noWhatsappZaloTemplates = this.isFullMode() && isEmpty(templates) || !this.state.hostName;
|
|
1448
1449
|
const noFilteredWhatsappZaloTemplates = this.isFullMode() && !isEmpty(templates) && isEmpty(filteredTemplates);
|
|
1449
1450
|
const noApprovedWhatsappZaloTemplates = !this.isFullMode() && isEmpty(filteredTemplates) && !isEmpty(this.state?.hostName);;
|
|
@@ -1456,7 +1457,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
1456
1457
|
{[WECHAT, MOBILE_PUSH, INAPP, WHATSAPP, ZALO].includes(currentChannel) && this.showAccountName()}
|
|
1457
1458
|
{filterContent}
|
|
1458
1459
|
{[WHATSAPP, ZALO].includes(currentChannel) && this.selectedFilters()}
|
|
1459
|
-
<CapCustomSkeleton loader={isLoading}>
|
|
1460
|
+
<CapCustomSkeleton loader={isLoading || getAllTemplatesInProgress}>
|
|
1460
1461
|
{<div>
|
|
1461
1462
|
{!isEmpty(filteredTemplates) || !isEmpty(this.state.searchText) || !isEmpty(this.props.Templates.templateError) ? (
|
|
1462
1463
|
<div className={!isEmpty(this.state.searchText) && isEmpty(cardDataList) ? '' : "pagination-container"}>
|