@capillarytech/creatives-library 7.17.15 → 7.17.17
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/package.json
CHANGED
|
@@ -211,7 +211,7 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
211
211
|
window.open(TAG_TRANSLATION_DOC, '_blank');
|
|
212
212
|
}
|
|
213
213
|
render() {
|
|
214
|
-
const { hidePopover = false, tags = {}, intl = {}, moduleFilterEnabled, label, modalProps } = this.props;
|
|
214
|
+
const { hidePopover = false, tags = {}, intl = {}, moduleFilterEnabled, label, modalProps, channel } = this.props;
|
|
215
215
|
const tg = tags;
|
|
216
216
|
const {formatMessage} = intl;
|
|
217
217
|
const { tagValue, expandedKeys, autoExpandParent, searchValue, visible, translationLang } = this.state;
|
|
@@ -293,7 +293,7 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
293
293
|
onVisibleChange={this.togglePopoverVisibility}
|
|
294
294
|
content={contentSection}
|
|
295
295
|
trigger="click"
|
|
296
|
-
placement="bottom"
|
|
296
|
+
placement={channel === 'EMAIL' ? "bottom" : "rightTop"}
|
|
297
297
|
>
|
|
298
298
|
<CapButton isAddBtn type="flat">{label || ''}</CapButton>
|
|
299
299
|
</CapPopover>
|
|
@@ -331,6 +331,7 @@ CapTagList.propTypes = {
|
|
|
331
331
|
modalProps: PropTypes.any,
|
|
332
332
|
disableTagsDetails: PropTypes.object,
|
|
333
333
|
currentOrgDetails: PropTypes.object,
|
|
334
|
+
channel: PropTypes.string,
|
|
334
335
|
};
|
|
335
336
|
|
|
336
337
|
CapTagList.defaultValue = {
|
|
@@ -96,7 +96,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
96
96
|
popoverVisible: false,
|
|
97
97
|
customPopoverVisible: false,
|
|
98
98
|
isDrawerVisible: false,
|
|
99
|
-
translationLang: ''
|
|
99
|
+
translationLang: 'en',
|
|
100
100
|
};
|
|
101
101
|
this.renderForm = this.renderForm.bind(this);
|
|
102
102
|
this.updateFormData = this.updateFormData.bind(this);
|
|
@@ -3066,6 +3066,7 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
3066
3066
|
id={val.id}
|
|
3067
3067
|
userLocale={this.props.userLocale}
|
|
3068
3068
|
selectedOfferDetails={this.props.selectedOfferDetails}
|
|
3069
|
+
channel={this.props.schema.channel}
|
|
3069
3070
|
/>
|
|
3070
3071
|
</CapColumn>
|
|
3071
3072
|
);
|
|
@@ -3437,11 +3438,11 @@ class FormBuilder extends React.Component { // eslint-disable-line react/prefer-
|
|
|
3437
3438
|
componentDidMount() {
|
|
3438
3439
|
const user = localStorage.getItem('user');
|
|
3439
3440
|
let locale = 'en';
|
|
3440
|
-
moment.locale(locale);
|
|
3441
3441
|
if (user) {
|
|
3442
3442
|
locale = JSON.parse(user).lang || locale;
|
|
3443
3443
|
}
|
|
3444
3444
|
locale = this.getTranslationMappedLocale(locale);
|
|
3445
|
+
moment.locale(locale);
|
|
3445
3446
|
this.setState({
|
|
3446
3447
|
translationLang: locale,
|
|
3447
3448
|
});
|
|
@@ -250,6 +250,7 @@ export class TagList extends React.Component { // eslint-disable-line react/pref
|
|
|
250
250
|
moduleFilterEnabled={this.props.moduleFilterEnabled}
|
|
251
251
|
modalProps={this.props.modalProps}
|
|
252
252
|
currentOrgDetails={this.props.currentOrgDetails}
|
|
253
|
+
channel={this.props.channel}
|
|
253
254
|
/>
|
|
254
255
|
</div>
|
|
255
256
|
);
|
|
@@ -275,6 +276,7 @@ TagList.propTypes = {
|
|
|
275
276
|
hidePopover: PropTypes.bool,
|
|
276
277
|
modalProps: PropTypes.any,
|
|
277
278
|
currentOrgDetails: PropTypes.object,
|
|
279
|
+
channel: PropTypes.string,
|
|
278
280
|
};
|
|
279
281
|
|
|
280
282
|
const mapStateToProps = createStructuredSelector({
|