@capillarytech/creatives-library 3.1.4 → 3.1.6
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
|
@@ -58,7 +58,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
58
58
|
showImageSelectionBox: false,
|
|
59
59
|
isDragDrop: false,
|
|
60
60
|
showConfirmationModal: false,
|
|
61
|
-
modalContent: {title: this.props.intl.formatMessage(messages.
|
|
61
|
+
modalContent: {title: this.props.intl.formatMessage(messages.alert), body: this.props.intl.formatMessage(messages.deleteLanguageConfirmation), type: 'confirm', id: 'email-language-delete-modal'},
|
|
62
62
|
showModal: false,
|
|
63
63
|
page: 1,
|
|
64
64
|
perPageLimit: 25,
|
|
@@ -906,14 +906,14 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
906
906
|
let modalContent = {};
|
|
907
907
|
if (type === 'delete-version') {
|
|
908
908
|
modalContent = {
|
|
909
|
-
title: this.props.intl.formatMessage(messages.
|
|
909
|
+
title: this.props.intl.formatMessage(messages.alert),
|
|
910
910
|
body: this.props.intl.formatMessage(messages.deleteVersionConfirmation),
|
|
911
911
|
type: 'confirm',
|
|
912
912
|
id: 'email-version-delete-modal',
|
|
913
913
|
};
|
|
914
914
|
} else if (type === 'delete-language') {
|
|
915
915
|
modalContent = {
|
|
916
|
-
title: this.props.intl.formatMessage(messages.
|
|
916
|
+
title: this.props.intl.formatMessage(messages.alert),
|
|
917
917
|
body: this.props.intl.formatMessage(messages.deleteLanguageConfirmation),
|
|
918
918
|
type: 'confirm',
|
|
919
919
|
id: 'email-language-delete-modal',
|
|
@@ -1001,7 +1001,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
1001
1001
|
showImageSelectionBox: false,
|
|
1002
1002
|
isDragDrop: false,
|
|
1003
1003
|
showConfirmationModal: false,
|
|
1004
|
-
modalContent: {title: this.props.intl.formatMessage(messages.
|
|
1004
|
+
modalContent: {title: this.props.intl.formatMessage(messages.alert), body: this.props.intl.formatMessage(messages.deleteLanguageConfirmation), type: 'confirm', id: 'email-language-delete-modal'},
|
|
1005
1005
|
showModal: false,
|
|
1006
1006
|
page: 1,
|
|
1007
1007
|
perPageLimit: 25,
|
|
@@ -1823,7 +1823,7 @@ export class Email extends React.Component { // eslint-disable-line react/prefer
|
|
|
1823
1823
|
|
|
1824
1824
|
moveToTemplates = () => {
|
|
1825
1825
|
const modalContent = {
|
|
1826
|
-
title: this.props.intl.formatMessage(messages.
|
|
1826
|
+
title: this.props.intl.formatMessage(messages.alert),
|
|
1827
1827
|
body: this.props.intl.formatMessage(messages.goBackTemporaryChangesLost),
|
|
1828
1828
|
type: 'confirm',
|
|
1829
1829
|
id: 'template-back-confirm-modal',
|
|
@@ -164,6 +164,9 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
164
164
|
if (this.props.location.query.type === 'embedded' && this.isEnabledInLibraryModule("setLocale")) {
|
|
165
165
|
this.setLocale();
|
|
166
166
|
}
|
|
167
|
+
if (this.props.location.query.type === 'embedded') {
|
|
168
|
+
this.props.actions.resetAccount();
|
|
169
|
+
}
|
|
167
170
|
if (this.state.channel.toLowerCase() === 'line' || this.state.channel.toLowerCase() === 'sms' || this.state.channel.toLowerCase() === 'email' || this.state.channel.toLowerCase() === 'ebill' || ((this.state.channel.toLowerCase() === 'wechat' || this.state.channel.toLowerCase() === 'mobilepush') && !isEmpty(this.props.Templates.selectedWeChatAccount))) {
|
|
168
171
|
const queryParams = {
|
|
169
172
|
// name: this.state.searchText,
|
|
@@ -378,7 +381,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
378
381
|
window.removeEventListener("message", this.handleFrameTasks);
|
|
379
382
|
this.props.actions.resetTemplateStoreData();
|
|
380
383
|
this.props.globalActions.clearMetaEntities();
|
|
381
|
-
this.props.actions.resetAccount();
|
|
384
|
+
// this.props.actions.resetAccount();
|
|
382
385
|
// this.setState({defaultAccount: false});
|
|
383
386
|
}
|
|
384
387
|
|
|
@@ -553,7 +553,7 @@ export class MapTemplates extends React.Component { // eslint-disable-line react
|
|
|
553
553
|
cols: [{
|
|
554
554
|
width: 23,
|
|
555
555
|
id: `tagList-${title}`,
|
|
556
|
-
label:
|
|
556
|
+
label: "Tags",
|
|
557
557
|
type: "tag-list", //Resembles component to be used
|
|
558
558
|
metaType: "List",
|
|
559
559
|
datatype: "select",
|
|
@@ -589,7 +589,7 @@ export class MapTemplates extends React.Component { // eslint-disable-line react
|
|
|
589
589
|
type: "input", //Resembles component to be used
|
|
590
590
|
metaType: "text",
|
|
591
591
|
datatype: "string",
|
|
592
|
-
errorMessage:
|
|
592
|
+
errorMessage: "Invalid content",
|
|
593
593
|
required: true,
|
|
594
594
|
fluid: true,
|
|
595
595
|
disabled: (this.props.location.query.type === 'embedded' && this.state.isEdit),
|
|
@@ -625,12 +625,12 @@ export class MapTemplates extends React.Component { // eslint-disable-line react
|
|
|
625
625
|
cols: [
|
|
626
626
|
{
|
|
627
627
|
id: 'template-link',
|
|
628
|
-
placeholder:
|
|
629
|
-
label:
|
|
628
|
+
placeholder: 'Link',
|
|
629
|
+
label: 'Link',
|
|
630
630
|
type: "input", //Resembles component to be used
|
|
631
631
|
metaType: "text",
|
|
632
632
|
datatype: "string",
|
|
633
|
-
errorMessage:
|
|
633
|
+
errorMessage: 'Link cannot be empty.',
|
|
634
634
|
required: true,
|
|
635
635
|
fluid: true,
|
|
636
636
|
disabled: (this.props.location.query.type === 'embedded' && this.state.isEdit),
|
|
@@ -655,7 +655,7 @@ export class MapTemplates extends React.Component { // eslint-disable-line react
|
|
|
655
655
|
cols: [
|
|
656
656
|
{
|
|
657
657
|
id: "is-internal-url",
|
|
658
|
-
label: this
|
|
658
|
+
label: 'Is this internal url',
|
|
659
659
|
standalone: true,
|
|
660
660
|
labelStyle: {
|
|
661
661
|
backgroundColor: "white",
|
|
@@ -46,7 +46,7 @@ export default defineMessages({
|
|
|
46
46
|
id: 'creatives.containersV2.WeChat.link',
|
|
47
47
|
defaultMessage: 'Link',
|
|
48
48
|
},
|
|
49
|
-
'
|
|
49
|
+
'Is this internal url': {
|
|
50
50
|
id: 'creatives.containersV2.WeChat.isInternalUrl',
|
|
51
51
|
defaultMessage: 'Is this internal url',
|
|
52
52
|
},
|
|
@@ -94,12 +94,12 @@ export default defineMessages({
|
|
|
94
94
|
id: 'creatives.containers.WeChat.newWechat',
|
|
95
95
|
defaultMessage: 'New wechat',
|
|
96
96
|
},
|
|
97
|
-
"
|
|
97
|
+
"Link cannot be empty.": {
|
|
98
98
|
id: 'creatives.containers.WeChat.linkErrorMessage',
|
|
99
99
|
defaultMessage: 'Link cannot be empty.',
|
|
100
100
|
},
|
|
101
|
-
"
|
|
101
|
+
"Invalid content": {
|
|
102
102
|
id: 'creatives.containers.WeChat.hasInvalidContent',
|
|
103
|
-
defaultMessage: '
|
|
103
|
+
defaultMessage: 'Invalid content.',
|
|
104
104
|
},
|
|
105
105
|
});
|