@capillarytech/creatives-library 3.0.17 → 3.0.18
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
|
@@ -542,9 +542,11 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
542
542
|
{filterContent}
|
|
543
543
|
<CapSpin spinning={isLoading} tip={loadingTip} style={{width: '100%'}}>
|
|
544
544
|
{!isLoading && <div>
|
|
545
|
-
{!_.isEmpty(templates) || !_.isEmpty(this.state.searchText) || !_.isEmpty(this.props.Templates.templateError) ?
|
|
546
|
-
<
|
|
547
|
-
|
|
545
|
+
{!_.isEmpty(templates) || !_.isEmpty(this.state.searchText) || !_.isEmpty(this.props.Templates.templateError) ? (
|
|
546
|
+
<div className={!_.isEmpty(this.state.searchText) && _.isEmpty(cardDataList) ? '' : "pagination-container"}>
|
|
547
|
+
<CapCustomCardList key={`${currentChannel}-card-list`} cardList={cardDataList} type={currentChannel} />
|
|
548
|
+
</div>)
|
|
549
|
+
: ['sms', "email"].includes(this.state.channel.toLowerCase()) && <CapIllustration {...this.getChannelTypeIllustrationInfo(currentChannel)} />
|
|
548
550
|
}
|
|
549
551
|
|
|
550
552
|
{(this.state.selectedAccount === '' && _.isEmpty(this.props.Templates.selectedWeChatAccount)) && (this.state.channel.toLowerCase() === 'wechat' || this.state.channel.toLowerCase() === "mobilepush") &&
|
|
@@ -1671,7 +1673,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
1671
1673
|
</Pagination>} */}
|
|
1672
1674
|
{(((this.state.selectedAccount !== '' && !_.isEmpty(this.props.Templates.selectedWeChatAccount) && this.state.channel.toLowerCase() === 'wechat') || this.state.channel.toLowerCase() !== 'wechat') && _.isEmpty(this.props.TemplatesList)) && !this.props.Templates.getAllTemplatesInProgress && !_.isEmpty(this.state.searchText) &&
|
|
1673
1675
|
<div style={{ height: '65vh', textAlign: 'center', lineHeight: '65vh'}}>
|
|
1674
|
-
<CapHeading type="h6">{this.props.intl.formatMessage(messages.
|
|
1676
|
+
<CapHeading type="h6">{this.props.intl.formatMessage(messages.noTemplatesFound)}</CapHeading>
|
|
1675
1677
|
</div>}
|
|
1676
1678
|
</CapRow>
|
|
1677
1679
|
|