@capillarytech/creatives-library 4.0.7 → 4.0.9
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/config/app.js
CHANGED
|
@@ -16,8 +16,8 @@ const config = {
|
|
|
16
16
|
development: {
|
|
17
17
|
api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/creatives',
|
|
18
18
|
campaigns_api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/campaigns',
|
|
19
|
-
auth_endpoint: '
|
|
20
|
-
arya_endpoint: '
|
|
19
|
+
auth_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/auth',
|
|
20
|
+
arya_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1',
|
|
21
21
|
subscription_api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/org-settings/subscription',
|
|
22
22
|
login_url: 'auth/login',
|
|
23
23
|
dashboard_url: '/sms',
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ const selectEbillDomain = () => (state) => state.get('ebill');
|
|
|
16
16
|
|
|
17
17
|
const makeSelectEbill = () => createSelector(
|
|
18
18
|
selectEbillDomain(),
|
|
19
|
-
(substate) => substate.toJS()
|
|
19
|
+
(substate) => substate && substate.toJS()
|
|
20
20
|
);
|
|
21
21
|
|
|
22
22
|
export default makeSelectEbill;
|
|
@@ -126,9 +126,9 @@ export class EmailWrapper extends React.Component { // eslint-disable-line react
|
|
|
126
126
|
|
|
127
127
|
|
|
128
128
|
if (supportedZipFormats.indexOf(fileExtension.toLowerCase()) !== -1) {
|
|
129
|
-
templatesActions.handleZipUpload(file
|
|
129
|
+
templatesActions.handleZipUpload(file, () => { //handle upload success
|
|
130
130
|
this.setState({ modeContent: { file } }, showNextStep);
|
|
131
|
-
stopTimerGA();
|
|
131
|
+
this.stopTimerGA();
|
|
132
132
|
}, this.handleZipUploadError);
|
|
133
133
|
} else if (fileExtension === 'html' || fileExtension === 'htm') {
|
|
134
134
|
const reader = new FileReader();
|
|
@@ -139,7 +139,7 @@ export class EmailWrapper extends React.Component { // eslint-disable-line react
|
|
|
139
139
|
});
|
|
140
140
|
// showNextStep();
|
|
141
141
|
};
|
|
142
|
-
reader.readAsText(file
|
|
142
|
+
reader.readAsText(file);
|
|
143
143
|
} else {
|
|
144
144
|
const message = {
|
|
145
145
|
key: "email-upload-error",
|
|
@@ -219,7 +219,7 @@ export class EmailWrapper extends React.Component { // eslint-disable-line react
|
|
|
219
219
|
<div>
|
|
220
220
|
{emailCreateMode === "upload" &&
|
|
221
221
|
<div style={{ marginLeft: '8px' }}>
|
|
222
|
-
<CapUploader
|
|
222
|
+
<CapUploader customRequest={this.useFileUpload} accept=".zip, .html, .htm" showUploadList={false}>
|
|
223
223
|
<CapButton>{this.props.intl.formatMessage(messages.upload)}</CapButton>
|
|
224
224
|
</CapUploader>
|
|
225
225
|
{!_.isEmpty(EmailLayout) &&
|
|
@@ -17,7 +17,7 @@ const selectTemplatesDomain = () => (state) => state.get('templates');
|
|
|
17
17
|
|
|
18
18
|
const makeSelectTemplates = () => createSelector(
|
|
19
19
|
selectTemplatesDomain(),
|
|
20
|
-
(substate) => substate.toJS()
|
|
20
|
+
(substate) => substate && substate.toJS()
|
|
21
21
|
);
|
|
22
22
|
|
|
23
23
|
const templateUserList = () => createSelector(
|