@capillarytech/creatives-library 7.17.91 → 7.17.92-alpha.0
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.
|
@@ -956,7 +956,6 @@ export class Ebill extends React.Component { // eslint-disable-line react/prefer
|
|
|
956
956
|
}
|
|
957
957
|
temp.injectedEvents = {};
|
|
958
958
|
_.forEach(col.supportedEvents, (event) => {
|
|
959
|
-
console.log('injected event for ', col, event, this.getMappedEvent(col.id, event));
|
|
960
959
|
temp.injectedEvents[event] = this.getMappedEvent(col.id, event);
|
|
961
960
|
});
|
|
962
961
|
|
|
@@ -1779,7 +1779,6 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1779
1779
|
temp.content.appName = this.props.Templates.selectedWeChatAccount.name;
|
|
1780
1780
|
}
|
|
1781
1781
|
_.forEach(col.supportedEvents, (event) => {
|
|
1782
|
-
console.log('injected event for ', col, event, this.getMappedEvent(col.id, event));
|
|
1783
1782
|
temp.injectedEvents[event] = this.getMappedEvent(col.id, event);
|
|
1784
1783
|
});
|
|
1785
1784
|
return true;
|
package/package.json
CHANGED
|
@@ -214,9 +214,10 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
214
214
|
this.setState({usingTabContainer: true});
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
|
-
//
|
|
218
|
-
|
|
219
|
-
|
|
217
|
+
//currentTab represents whether its Android or IOS tab , 1 for Android and 2 for IOS
|
|
218
|
+
if (nextProps.currentTab && _.get(this.props, 'schema.channel') === MOBILE_PUSH) {
|
|
219
|
+
this.setState({currentTab: nextProps.currentTab});
|
|
220
|
+
}
|
|
220
221
|
} else if (!_.isEmpty(nextProps.formData) &&
|
|
221
222
|
( !this.state.usingTabContainer || (this.state.usingTabContainer && nextProps.tabKey !== ''))
|
|
222
223
|
&& !_.isEqual(nextProps.formData, this.state.formData) &&
|
|
@@ -768,10 +768,9 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
768
768
|
formData[0].base = true;
|
|
769
769
|
// formData[0].tabKey = '1';
|
|
770
770
|
// formData[1].tabKey = '2';
|
|
771
|
-
|
|
772
771
|
this.setState({templateCta}, () => {
|
|
773
772
|
this.getSchemaForFormData(formData, schema);
|
|
774
|
-
this.setState({tabCount, formData, editData: data
|
|
773
|
+
this.setState({tabCount, formData, editData: data}, () => {
|
|
775
774
|
this.props.showTemplateName({formData, onFormDataChange: this.onFormDataChange});
|
|
776
775
|
});
|
|
777
776
|
});
|
|
@@ -1469,7 +1468,6 @@ export class Edit extends React.Component { // eslint-disable-line react/prefer-
|
|
|
1469
1468
|
temp.content.appName = this.props.Templates.selectedWeChatAccount.name;
|
|
1470
1469
|
}
|
|
1471
1470
|
_.forEach(col.supportedEvents, (event) => {
|
|
1472
|
-
console.log('injected event for ', col, event, this.getMappedEvent(col.id, event));
|
|
1473
1471
|
temp.injectedEvents[event] = this.getMappedEvent(col.id, event);
|
|
1474
1472
|
});
|
|
1475
1473
|
return true;
|