@capillarytech/creatives-library 7.11.14 → 7.11.15
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 +0 -1
- package/package.json +1 -1
- package/v2Containers/Whatsapp/index.js +6 -4
package/config/app.js
CHANGED
|
@@ -17,7 +17,6 @@ const config = {
|
|
|
17
17
|
},
|
|
18
18
|
development: {
|
|
19
19
|
api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/creatives',
|
|
20
|
-
//api_endpoint: 'http://localhost:2022/arya/api/v1/creatives',
|
|
21
20
|
campaigns_api_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/campaigns',
|
|
22
21
|
campaigns_api_org_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/iris/v2/org/campaign',
|
|
23
22
|
auth_endpoint: 'https://crm-nightly-new.cc.capillarytech.com/arya/api/v1/auth',
|
package/package.json
CHANGED
|
@@ -176,10 +176,12 @@ export const Whatsapp = (props) => {
|
|
|
176
176
|
category = '',
|
|
177
177
|
status = WHATSAPP_STATUSES.unsubmitted,
|
|
178
178
|
rejection_reason = null,
|
|
179
|
+
languages = [],
|
|
179
180
|
} = editContent;
|
|
180
181
|
setTemplateCategory(category);
|
|
181
182
|
setTemplateStatus(status);
|
|
182
183
|
setTemplateRejectionReason(rejection_reason);
|
|
184
|
+
setTemplateLanguage(languages[0]?.language);
|
|
183
185
|
computeTempMsgArray();
|
|
184
186
|
}
|
|
185
187
|
}, [editData.templateDetails || templateData]);
|
|
@@ -514,11 +516,11 @@ export const Whatsapp = (props) => {
|
|
|
514
516
|
const getPayloadContent = () =>
|
|
515
517
|
isEditFlow && !isFullMode
|
|
516
518
|
? `${updatedSmsEditor.join('')}\n${formatMessage(
|
|
517
|
-
|
|
518
|
-
|
|
519
|
+
messages.templateMessageUnsubscribeText,
|
|
520
|
+
)}`
|
|
519
521
|
: `${templateMessage}\n${formatMessage(messages.modifiedUnsubscribeText, {
|
|
520
|
-
|
|
521
|
-
|
|
522
|
+
value: `{{${addedVarCount + 1}}}`,
|
|
523
|
+
})}`;
|
|
522
524
|
|
|
523
525
|
const createPayload = () => ({
|
|
524
526
|
name: templateName,
|