@capillarytech/creatives-library 7.12.10 → 7.12.12
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
|
@@ -98,12 +98,12 @@ export function SlideBoxHeader(props) {
|
|
|
98
98
|
title={<FormattedMessage {...headerMessage} values={{ channel: getChannelLabel(channel) }} />}
|
|
99
99
|
description={
|
|
100
100
|
<>
|
|
101
|
-
{showTemplateName
|
|
101
|
+
{showTemplateName ? (
|
|
102
102
|
<>
|
|
103
103
|
{renderWhatsappData("label1", <FormattedMessage {...globalMessages.templateNameLabel} />)}
|
|
104
104
|
{renderWhatsappData("label2", templateName)}
|
|
105
105
|
</>
|
|
106
|
-
)}
|
|
106
|
+
) : ""}
|
|
107
107
|
{isWhatsappEdit && (
|
|
108
108
|
<>
|
|
109
109
|
{renderWhatsappData("label3", <FormattedMessage {...whatsppMsg.labelSeperator} />)}
|
|
@@ -121,8 +121,8 @@ export function SlideBoxHeader(props) {
|
|
|
121
121
|
<CapIcons.backIcon onClick={onShowTemplates} />
|
|
122
122
|
</PrefixWrapper>
|
|
123
123
|
}
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
/>
|
|
125
|
+
)}
|
|
126
126
|
{!showTemplateNameHeader && slidBoxContent === 'createTemplate' && ( templateStep === 'modeSelection' || (templateStep === "createTemplateContent" && weChatTemplateType !== MAP_TEMPLATE) ) && (
|
|
127
127
|
<CapHeader
|
|
128
128
|
title={<FormattedMessage {...(showCreateTraiSMSHeader ? messages.UploadSMStemplates : messages.createMessageContent)} values={{channel: getChannelLabel(channel)}}/>}
|
|
@@ -80,9 +80,17 @@ export class TemplatesV2 extends React.Component { // eslint-disable-line react/
|
|
|
80
80
|
filteredPanes.push({content: <></>, tab: intl.formatMessage(messages.FTP), key: 'ftp'});
|
|
81
81
|
defaultChannel = 'FTP';
|
|
82
82
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
const commonChannels = ['sms', 'email', 'wechat', 'mobilepush', 'line', 'viber', 'facebook', 'call_task', 'ftp', 'assets'];
|
|
84
|
+
|
|
85
|
+
// we only show channels which other than commonChannels
|
|
86
|
+
// if it is coming in enableNewChannels array
|
|
87
|
+
filteredPanes.filter((item) => {
|
|
88
|
+
const channel = item.key;
|
|
89
|
+
if (!commonChannels.includes(channel)) {
|
|
90
|
+
return !enableNewChannels.includes(channel.toUpperCase());
|
|
91
|
+
}
|
|
92
|
+
return true;
|
|
93
|
+
});
|
|
86
94
|
}
|
|
87
95
|
|
|
88
96
|
|