@capillarytech/creatives-library 7.10.35 → 7.10.37
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/containers/Email/index.js +3 -2
- package/containers/MobilePush/Edit/index.js +1 -1
- package/package.json +1 -1
- package/v2Containers/Facebook/Facebook.style.js +1 -1
- package/v2Containers/Facebook/index.js +1 -1
- package/v2Containers/SmsTrai/Create/index.js +2 -2
- package/v2Containers/SmsTrai/Edit/messages.js +1 -1
|
@@ -2733,11 +2733,12 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
2733
2733
|
} else {
|
|
2734
2734
|
this.setState({injectedTags: data.tags});
|
|
2735
2735
|
}
|
|
2736
|
-
|
|
2736
|
+
if (data.tags) {
|
|
2737
|
+
this.props.globalActions.setInjectedTags(data.tags);
|
|
2738
|
+
}
|
|
2737
2739
|
}
|
|
2738
2740
|
|
|
2739
2741
|
startLoading = (ifEdit) => {
|
|
2740
|
-
|
|
2741
2742
|
if (ifEdit) {
|
|
2742
2743
|
this.setState({loading: true});
|
|
2743
2744
|
}
|
|
@@ -239,7 +239,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
239
239
|
this.setTemplateOptions(nextProps.Edit.mobilepushTemplates);
|
|
240
240
|
}
|
|
241
241
|
}
|
|
242
|
-
if (nextProps.templateDetails && nextProps.templateDetails.name && _.isEmpty(this.state.editData) && (this.props.location.query.type !== 'embedded' || (!_.isEmpty(this.state.fullSchema) && selectedWeChatAccount))) {
|
|
242
|
+
if (nextProps.templateDetails && nextProps.templateDetails.name && (_.isEmpty(this.state.editData) || !this.state.editData.name) && (this.props.location.query.type !== 'embedded' || (!_.isEmpty(this.state.fullSchema) && selectedWeChatAccount))) {
|
|
243
243
|
this.props = nextProps;
|
|
244
244
|
const mode = nextProps.templateDetails.definition ? nextProps.templateDetails.definition.mode : nextProps.templateDetails.mode;
|
|
245
245
|
const schema = mode === "text" ? this.state.fullSchema.textSchema : this.state.fullSchema.imageSchema;
|
package/package.json
CHANGED
|
@@ -789,7 +789,7 @@ export const SmsTraiCreate = (props) => {
|
|
|
789
789
|
<CapLabel.CapLabelInline type="label9">
|
|
790
790
|
{fileMeta.name}
|
|
791
791
|
</CapLabel.CapLabelInline>
|
|
792
|
-
<CapLabel.CapLabelInline
|
|
792
|
+
{saveTemplate && <CapLabel.CapLabelInline
|
|
793
793
|
type="label1"
|
|
794
794
|
className="number-of-records"
|
|
795
795
|
>
|
|
@@ -798,7 +798,7 @@ export const SmsTraiCreate = (props) => {
|
|
|
798
798
|
value: fileData.data.length - 1,
|
|
799
799
|
})}
|
|
800
800
|
)
|
|
801
|
-
</CapLabel.CapLabelInline>
|
|
801
|
+
</CapLabel.CapLabelInline>}
|
|
802
802
|
</CapColumn>
|
|
803
803
|
{errorText && (
|
|
804
804
|
<>
|
|
@@ -37,7 +37,7 @@ export default defineMessages({
|
|
|
37
37
|
},
|
|
38
38
|
smsEditNotification: {
|
|
39
39
|
id: `${prefix}.smsEditNotification`,
|
|
40
|
-
defaultMessage: '
|
|
40
|
+
defaultMessage: 'Sms template updated successfully',
|
|
41
41
|
},
|
|
42
42
|
textAreaError: {
|
|
43
43
|
id: `${prefix}.textAreaError`,
|