@capillarytech/creatives-library 7.7.22 → 7.7.23
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.
|
@@ -558,7 +558,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
558
558
|
});
|
|
559
559
|
} else {
|
|
560
560
|
selectedAccount = accounts[0];
|
|
561
|
-
formData['mobilepush-accounts'] =
|
|
561
|
+
formData['mobilepush-accounts'] = selectedAccount?.id;
|
|
562
562
|
}
|
|
563
563
|
this.props.actions.setWeChatAccount(selectedAccount);
|
|
564
564
|
this.setState({formData, accountsOptions: accounts.map((acc) => ({key: acc.id, label: acc.name, value: acc.id}))});
|
|
@@ -573,7 +573,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
573
573
|
obj.type = 'MOBILEPUSH';
|
|
574
574
|
obj.name = formData['template-name'];
|
|
575
575
|
obj.definition = {
|
|
576
|
-
accountId: selectedWeChatAccount
|
|
576
|
+
accountId: selectedWeChatAccount?.id,
|
|
577
577
|
licenseCode: selectedWeChatAccount.sourceAccountIdentifier,
|
|
578
578
|
};
|
|
579
579
|
if (this.props.location.query && this.props.location.query.module !== 'dvs') {
|
|
@@ -871,7 +871,8 @@ export class MapTemplates extends React.Component { // eslint-disable-line react
|
|
|
871
871
|
if (!_.isEmpty(weCrmAccounts)) {
|
|
872
872
|
_.forEach(weCrmAccounts, (account) => {
|
|
873
873
|
if (account.configs && account.configs.is_wecrm_enabled) {
|
|
874
|
-
schema
|
|
874
|
+
const options = schema?.standalone?.sections[0]?.childSections[1]?.childSections[0]?.childSections[0]?.inputFields[0]?.options;
|
|
875
|
+
options && options.push({
|
|
875
876
|
key: account.uuid,
|
|
876
877
|
label: account.name,
|
|
877
878
|
value: account.name,
|
package/package.json
CHANGED
|
@@ -346,7 +346,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
346
346
|
});
|
|
347
347
|
} else {
|
|
348
348
|
selectedAccount = accounts[0];
|
|
349
|
-
formData['mobilepush-accounts'] =
|
|
349
|
+
formData['mobilepush-accounts'] = selectedAccount?.id;
|
|
350
350
|
}
|
|
351
351
|
this.props.actions.setWeChatAccount(selectedAccount);
|
|
352
352
|
this.setState({formData, accountsOptions: accounts.map((acc) => ({key: acc.id, label: acc.name, value: acc.id}))});
|
|
@@ -361,7 +361,7 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
361
361
|
obj.type = 'MOBILEPUSH';
|
|
362
362
|
obj.name = formData['template-name'];
|
|
363
363
|
obj.definition = {
|
|
364
|
-
accountId: selectedWeChatAccount
|
|
364
|
+
accountId: selectedWeChatAccount?.id,
|
|
365
365
|
licenseCode: selectedWeChatAccount.sourceAccountIdentifier,
|
|
366
366
|
};
|
|
367
367
|
if (this.props.location.query && this.props.location.query.module !== 'dvs') {
|
|
@@ -45,7 +45,7 @@ export class MobilepushWrapper extends React.Component { // eslint-disable-line
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
title: <FormattedMessage {...messages.text}/>,
|
|
48
|
-
content: <WithNoImage height="
|
|
48
|
+
content: <WithNoImage height="216px" width={"224px"}/>,
|
|
49
49
|
value: 'text',
|
|
50
50
|
// onClick: () => {
|
|
51
51
|
// this.emailUploader.current.click();
|
|
@@ -764,7 +764,8 @@ export class MapTemplates extends React.Component { // eslint-disable-line react
|
|
|
764
764
|
if (!isEmpty(weCrmAccounts)) {
|
|
765
765
|
forEach(weCrmAccounts, (account) => {
|
|
766
766
|
if (account.configs && account.configs.is_wecrm_enabled) {
|
|
767
|
-
schema
|
|
767
|
+
const options = schema?.standalone?.sections[0]?.childSections[1]?.childSections[0]?.childSections[0]?.inputFields[0]?.options;
|
|
768
|
+
options && options.push({
|
|
768
769
|
key: account.uuid,
|
|
769
770
|
label: account.name,
|
|
770
771
|
value: account.name,
|