@capillarytech/creatives-library 7.17.34 → 7.17.35
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
package/utils/common.js
CHANGED
|
@@ -13,7 +13,6 @@ import {
|
|
|
13
13
|
REGISTRATION_CUSTOM_FIELD,
|
|
14
14
|
JP_LOCALE_HIDE_FEATURE,
|
|
15
15
|
ENABLE_CUSTOMER_BARCODE_TAG,
|
|
16
|
-
CUSTOMER_BARCODE_TAG,
|
|
17
16
|
} from '../containers/App/constants';
|
|
18
17
|
import { apiMessageFormatHandler } from './commonUtils';
|
|
19
18
|
|
|
@@ -96,10 +95,6 @@ export function getTreeStructuredTags({tagsList, userLocale = 'en', offerDetails
|
|
|
96
95
|
//filtering HOSPITALITY_RELATED_TAGS if org does not have HOSPITALITY_BASED_SCOPE feature enabled
|
|
97
96
|
clonedTags = filterTags(HOSPITALITY_RELATED_TAGS, tagsList);
|
|
98
97
|
}
|
|
99
|
-
if (!hasCustomerBarcodeFeatureEnabled()) {
|
|
100
|
-
//filtering CUSTOMER_BARCODE_TAG if org does not have CUSTOMER_BARCODE_TAG feature enabled
|
|
101
|
-
clonedTags = _.omit(clonedTags, CUSTOMER_BARCODE_TAG);
|
|
102
|
-
}
|
|
103
98
|
_.forEach(clonedTags, (temp) => {
|
|
104
99
|
const tag = temp.definition;
|
|
105
100
|
if (!tag['tag-header']) { //if tag doesn't have subtag(s), which means this tag itself is tag and not a tag header.
|
|
@@ -187,6 +187,10 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
187
187
|
//filtering HOSPITALITY_RELATED_TAGS if org does not have HOSPITALITY_BASED_SCOPE feature enabled
|
|
188
188
|
clonedTags = _.omit(clonedTags, HOSPITALITY_RELATED_TAGS);
|
|
189
189
|
}
|
|
190
|
+
if (!hasCustomerBarcodeFeatureEnabled()) {
|
|
191
|
+
//filtering CUSTOMER_BARCODE_TAG if org does not have CUSTOMER_BARCODE_TAG feature enabled
|
|
192
|
+
clonedTags = _.omit(clonedTags, CUSTOMER_BARCODE_TAG);
|
|
193
|
+
}
|
|
190
194
|
_.forEach(clonedTags, (val = '', key) => {
|
|
191
195
|
let supportedTagsString = '';
|
|
192
196
|
_.forEach(val.supportedTags, (supportedTag) => {
|