Skip to content

Commit 71f413f

Browse files
authored
Merge pull request #3801 from techmatters/CHI-3563-feature_flag
CHI-3563-feature_flag
2 parents 160c4bd + 72dc1b6 commit 71f413f

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

plugin-hrm-form/src/components/customSideLinks/setUpCustomSideLinks.tsx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ import React from 'react';
1919

2020
import CustomSideLinkSet from './CustomSideLinkSet';
2121
import CustomEmbeddedLinkSet from './CustomEmbeddedLinkSet';
22+
import { getAseloFeatureFlags } from '../../hrmConfig';
2223

2324
// eslint-disable-next-line import/no-unused-modules
2425
export const setUpCustomSideLinks = () => {
25-
Flex.ViewCollection.Content.add(
26-
<Flex.View name="custom-link" key="custom-link-view">
27-
<CustomEmbeddedLinkSet />
28-
</Flex.View>,
29-
);
30-
Flex.SideNav.Content.add(<CustomSideLinkSet key="custom-link-set" />);
26+
if (getAseloFeatureFlags().enable_custom_links) {
27+
Flex.ViewCollection.Content.add(
28+
<Flex.View name="custom-link" key="custom-link-view">
29+
<CustomEmbeddedLinkSet />
30+
</Flex.View>,
31+
);
32+
Flex.SideNav.Content.add(<CustomSideLinkSet key="custom-link-set" />);
33+
}
3134
};

plugin-hrm-form/src/types/FeatureFlags.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ export type FeatureFlags = {
2222
enable_confirm_on_browser_close: boolean; // Enables confirmation dialog on browser close when there are unsaved changes
2323
enable_csam_clc_report: boolean; // Enables CSAM child Reports
2424
enable_csam_report: boolean; // Enables CSAM Reports
25+
enable_custom_links: boolean; // Enables custom side links to be set from a CustomLinks.json form definition file
2526
enable_dual_write: boolean; // Enables Saving Contacts on External Backends
2627
enable_emoji_picker: boolean; // Enables Emoji Picker
2728
enable_external_transcripts: boolean; // Enables Viewing Transcripts Stored Outside of Twilio

0 commit comments

Comments
 (0)