@capillarytech/creatives-library 7.17.182 → 7.17.183-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.
- package/config/app.js +1 -1
- package/package.json +1 -1
- package/v2Containers/Templates/index.js +3 -3
package/config/app.js
CHANGED
|
@@ -16,7 +16,7 @@ const config = {
|
|
|
16
16
|
accountConfig: (strs, accountId) => `${window.location.origin}/org/config/AccountAdd?q=a&channelId=2&accountId=${accountId}&edit=1`,
|
|
17
17
|
},
|
|
18
18
|
development: {
|
|
19
|
-
api_endpoint: '
|
|
19
|
+
api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/creatives',
|
|
20
20
|
campaigns_api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/campaigns',
|
|
21
21
|
campaigns_api_org_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/org/campaign',
|
|
22
22
|
auth_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/auth',
|
package/package.json
CHANGED
|
@@ -624,7 +624,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
624
624
|
} = configs || {};
|
|
625
625
|
if (weCrmChannels.includes(selectedChannel)) {
|
|
626
626
|
if ([WHATSAPP_LOWERCASE, ZALO_LOWERCASE].includes(selectedChannel)) {
|
|
627
|
-
if (hostName === ''
|
|
627
|
+
if (hostName === '') {
|
|
628
628
|
return;
|
|
629
629
|
}
|
|
630
630
|
|
|
@@ -634,7 +634,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
634
634
|
paramsDefault.username = name;
|
|
635
635
|
paramsDefault.oa_id = sourceAccountIdentifier;
|
|
636
636
|
paramsDefault.token = token;
|
|
637
|
-
paramsDefault.host = hostName || this.
|
|
637
|
+
paramsDefault.host = hostName || this.props.Templates?.senderDetails?.hostName || this.props.Templates?.selectedZaloAccount?.hostName || this.state.hostName;
|
|
638
638
|
}
|
|
639
639
|
} else {
|
|
640
640
|
paramsDefault.wecrmId = wecrm_app_id;
|
|
@@ -866,7 +866,7 @@ export class Templates extends React.Component { // eslint-disable-line react/pr
|
|
|
866
866
|
queryParams.username = name;
|
|
867
867
|
queryParams.oa_id = sourceAccountIdentifier;
|
|
868
868
|
queryParams.token = token;
|
|
869
|
-
queryParams.host = hostName || this.
|
|
869
|
+
queryParams.host = hostName || this.props.Templates?.senderDetails?.hostName ||this.state.hostName;
|
|
870
870
|
}
|
|
871
871
|
this.setState({ page, templatesCount }, () => {
|
|
872
872
|
queryParams.page = page;
|