@capillarytech/creatives-library 7.17.33-alpha.3 → 7.17.33-alpha.4
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
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
CUSTOM_TAG,
|
|
13
13
|
REGISTRATION_CUSTOM_FIELD,
|
|
14
14
|
JP_LOCALE_HIDE_FEATURE,
|
|
15
|
+
ENABLE_CUSTOMER_BARCODE_TAG,
|
|
15
16
|
} from '../containers/App/constants';
|
|
16
17
|
import { apiMessageFormatHandler } from './commonUtils';
|
|
17
18
|
|
|
@@ -71,6 +72,11 @@ export const hasJPLocaleHideFeatureEnabled = Auth.hasFeatureAccess.bind(
|
|
|
71
72
|
JP_LOCALE_HIDE_FEATURE,
|
|
72
73
|
);
|
|
73
74
|
|
|
75
|
+
export const hasCustomerBarcodeFeatureEnabled = Auth.hasFeatureAccess.bind(
|
|
76
|
+
null,
|
|
77
|
+
ENABLE_CUSTOMER_BARCODE_TAG,
|
|
78
|
+
);
|
|
79
|
+
|
|
74
80
|
//filtering tags based on scope
|
|
75
81
|
export const filterTags = (tagsToFilter, tagsList) => tagsList?.filter(
|
|
76
82
|
(tag) => !tagsToFilter?.includes(tag?.definition?.value)
|
|
@@ -184,9 +184,9 @@ class CapTagList extends React.Component { // eslint-disable-line react/prefer-s
|
|
|
184
184
|
if (!hasCardBasedScope()) {
|
|
185
185
|
clonedTags = _.omit(clonedTags, CARD_RELATED_TAGS);
|
|
186
186
|
}
|
|
187
|
-
//code to remove until barcode tag is not supported by BE
|
|
188
|
-
// if (!
|
|
189
|
-
// clonedTags = _.omit(clonedTags,
|
|
187
|
+
// code to remove until barcode tag is not supported by BE
|
|
188
|
+
// if (!hasCustomerBarcodeFeatureEnabled()) {
|
|
189
|
+
// clonedTags = _.omit(clonedTags, ENABLE_CUSTOMER_BARCODE_TAG);
|
|
190
190
|
// }
|
|
191
191
|
if (!hasHospitalityBasedScope()) {
|
|
192
192
|
//filtering HOSPITALITY_RELATED_TAGS if org does not have HOSPITALITY_BASED_SCOPE feature enabled
|