File tree Expand file tree Collapse file tree
components/customSideLinks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,13 +19,16 @@ import React from 'react';
1919
2020import CustomSideLinkSet from './CustomSideLinkSet' ;
2121import CustomEmbeddedLinkSet from './CustomEmbeddedLinkSet' ;
22+ import { getAseloFeatureFlags } from '../../hrmConfig' ;
2223
2324// eslint-disable-next-line import/no-unused-modules
2425export 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} ;
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments