File tree Expand file tree Collapse file tree 4 files changed +18
-12
lines changed
ApplicationGroup/Details/EnvironmentOverview Expand file tree Collapse file tree 4 files changed +18
-12
lines changed Original file line number Diff line number Diff line change @@ -66,3 +66,4 @@ FEATURE_DEFAULT_AUTHENTICATED_VIEW_ENABLE=false
66
66
GATEKEEPER_URL = https://license.devtron.ai/dashboard
67
67
FEATURE_AI_INTEGRATION_ENABLE = false
68
68
LOGIN_PAGE_IMAGE =
69
+ FEATURE_MANAGE_TRAFFIC_ENABLE = false
Original file line number Diff line number Diff line change @@ -512,7 +512,9 @@ const EnvironmentOverview = ({
512
512
< span className = "flex" >
513
513
< GridIcon className = "icon-dim-20 mr-8 scn-9" /> { GROUP_LIST_HEADER . APPLICATIONS }
514
514
</ span >
515
- { ManageTrafficButton && < ManageTrafficButton onClick = { handleOpenManageTrafficDrawer } /> }
515
+ { window . _env_ . FEATURE_MANAGE_TRAFFIC_ENABLE && ManageTrafficButton && (
516
+ < ManageTrafficButton onClick = { handleOpenManageTrafficDrawer } />
517
+ ) }
516
518
</ div >
517
519
< EnvironmentOverviewTable
518
520
rows = { environmentOverviewTableRows }
@@ -540,7 +542,7 @@ const EnvironmentOverview = ({
540
542
count = { selectedAppDetailsList . length }
541
543
onClose = { handleBulkSelectionWidgetClose }
542
544
popUpMenuItems = { [
543
- ...( getManageTrafficMenuButtonConfig
545
+ ...( window . _env_ . FEATURE_MANAGE_TRAFFIC_ENABLE && getManageTrafficMenuButtonConfig
544
546
? [ getManageTrafficMenuButtonConfig ( { onClick : handleOpenManageTrafficDrawer } ) ]
545
547
: [ ] ) ,
546
548
...( ClonePipelineMenuButton && appListData . environment
Original file line number Diff line number Diff line change @@ -440,16 +440,18 @@ export const SourceInfo = ({
440
440
filteredEnvIds = { filteredEnvIds }
441
441
/>
442
442
) }
443
- { ! isVirtualEnvironment && DeploymentStrategyCard && (
444
- < DeploymentStrategyCard
445
- appId = { appDetails . appId }
446
- envId = { appDetails . environmentId }
447
- appName = { appDetails . appName }
448
- envName = { appDetails . environmentName }
449
- renderRollbackButton = { ( ) => renderAppDetailsCDButton ( true ) }
450
- isResourceTreeReloading = { isResourceTreeReloading }
451
- />
452
- ) }
443
+ { window . _env_ . FEATURE_MANAGE_TRAFFIC_ENABLE &&
444
+ ! isVirtualEnvironment &&
445
+ DeploymentStrategyCard && (
446
+ < DeploymentStrategyCard
447
+ appId = { appDetails . appId }
448
+ envId = { appDetails . environmentId }
449
+ appName = { appDetails . appName }
450
+ envName = { appDetails . environmentName }
451
+ renderRollbackButton = { ( ) => renderAppDetailsCDButton ( true ) }
452
+ isResourceTreeReloading = { isResourceTreeReloading }
453
+ />
454
+ ) }
453
455
{ ! appDetails ?. deploymentAppDeleteRequest &&
454
456
! appMigratedFromExternalSourceAndIsNotTriggered && (
455
457
< SecurityVulnerabilityCard
Original file line number Diff line number Diff line change @@ -169,6 +169,7 @@ if (!window || !window._env_) {
169
169
GATEKEEPER_URL : 'https://license.devtron.ai/dashboard' ,
170
170
FEATURE_AI_INTEGRATION_ENABLE : false ,
171
171
LOGIN_PAGE_IMAGE : '' ,
172
+ FEATURE_MANAGE_TRAFFIC_ENABLE : false ,
172
173
}
173
174
}
174
175
You can’t perform that action at this time.
0 commit comments