mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	feat: disable notifications flag (#3874)
This commit is contained in:
		
							parent
							
								
									258cae2e7f
								
							
						
					
					
						commit
						b0a003ea58
					
				| @ -255,7 +255,10 @@ const Header: VFC = () => { | |||||||
|                             </IconButton> |                             </IconButton> | ||||||
|                         </Tooltip>{' '} |                         </Tooltip>{' '} | ||||||
|                         <ConditionallyRender |                         <ConditionallyRender | ||||||
|                             condition={!isOss()} |                             condition={ | ||||||
|  |                                 !isOss() && | ||||||
|  |                                 !uiConfig?.flags.disableNotifications | ||||||
|  |                             } | ||||||
|                             show={<Notifications />} |                             show={<Notifications />} | ||||||
|                         /> |                         /> | ||||||
|                         <Tooltip title="Documentation" arrow> |                         <Tooltip title="Documentation" arrow> | ||||||
|  | |||||||
| @ -52,6 +52,7 @@ export interface IFlags { | |||||||
|     strategyImprovements?: boolean; |     strategyImprovements?: boolean; | ||||||
|     disableBulkToggle?: boolean; |     disableBulkToggle?: boolean; | ||||||
|     segmentContextFieldUsage?: boolean; |     segmentContextFieldUsage?: boolean; | ||||||
|  |     disableNotifications?: boolean; | ||||||
| } | } | ||||||
| 
 | 
 | ||||||
| export interface IVersionInfo { | export interface IVersionInfo { | ||||||
|  | |||||||
| @ -72,6 +72,7 @@ exports[`should create default config 1`] = ` | |||||||
|       "cleanClientApi": false, |       "cleanClientApi": false, | ||||||
|       "demo": false, |       "demo": false, | ||||||
|       "disableBulkToggle": false, |       "disableBulkToggle": false, | ||||||
|  |       "disableNotifications": false, | ||||||
|       "embedProxy": true, |       "embedProxy": true, | ||||||
|       "embedProxyFrontend": true, |       "embedProxyFrontend": true, | ||||||
|       "featuresExportImport": true, |       "featuresExportImport": true, | ||||||
| @ -103,6 +104,7 @@ exports[`should create default config 1`] = ` | |||||||
|       "cleanClientApi": false, |       "cleanClientApi": false, | ||||||
|       "demo": false, |       "demo": false, | ||||||
|       "disableBulkToggle": false, |       "disableBulkToggle": false, | ||||||
|  |       "disableNotifications": false, | ||||||
|       "embedProxy": true, |       "embedProxy": true, | ||||||
|       "embedProxyFrontend": true, |       "embedProxyFrontend": true, | ||||||
|       "featuresExportImport": true, |       "featuresExportImport": true, | ||||||
|  | |||||||
| @ -22,7 +22,8 @@ export type IFlagKey = | |||||||
|     | 'googleAuthEnabled' |     | 'googleAuthEnabled' | ||||||
|     | 'variantMetrics' |     | 'variantMetrics' | ||||||
|     | 'disableBulkToggle' |     | 'disableBulkToggle' | ||||||
|     | 'segmentContextFieldUsage'; |     | 'segmentContextFieldUsage' | ||||||
|  |     | 'disableNotifications'; | ||||||
| 
 | 
 | ||||||
| export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; | export type IFlags = Partial<{ [key in IFlagKey]: boolean | Variant }>; | ||||||
| 
 | 
 | ||||||
| @ -103,6 +104,10 @@ const flags: IFlags = { | |||||||
|         process.env.UNLEASH_SSEGMENT_CONTEXT_FIELD_USAGE, |         process.env.UNLEASH_SSEGMENT_CONTEXT_FIELD_USAGE, | ||||||
|         false, |         false, | ||||||
|     ), |     ), | ||||||
|  |     disableNotifications: parseEnvVarBoolean( | ||||||
|  |         process.env.DISABLE_NOTIFICATIONS, | ||||||
|  |         false, | ||||||
|  |     ), | ||||||
| }; | }; | ||||||
| 
 | 
 | ||||||
| export const defaultExperimentalOptions: IExperimentalOptions = { | export const defaultExperimentalOptions: IExperimentalOptions = { | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user