@capillarytech/creatives-library 7.10.35 → 7.10.36
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.
|
@@ -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`,
|