File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
src/components/v2/values/chartValuesDiff Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ const ChartValuesView = ({
160
160
presetValueId : string
161
161
envId : string
162
162
} > ( )
163
- const { serverMode } = useMainContext ( )
163
+ const { serverMode, isManifestScanningEnabled } = useMainContext ( )
164
164
const { handleDownload } = useDownload ( )
165
165
const chartValuesAbortRef = useRef < AbortController > ( new AbortController ( ) )
166
166
const [ chartValuesList , setChartValuesList ] = useState < ChartValuesType [ ] > ( chartValuesListFromParent || [ ] )
@@ -1809,12 +1809,15 @@ const ChartValuesView = ({
1809
1809
/>
1810
1810
) }
1811
1811
</ div >
1812
- { ! isExternalApp && ( isDeployChartView || isUpdateAppView ) && ToggleSecurityScan && (
1813
- < ToggleSecurityScan
1814
- isManifestScanEnabled = { commonState . isManifestScanEnabled }
1815
- handleToggleSecurityScan = { handleToggleSecurityScan }
1816
- />
1817
- ) }
1812
+ { ! isExternalApp &&
1813
+ isManifestScanningEnabled &&
1814
+ ( isDeployChartView || isUpdateAppView ) &&
1815
+ ToggleSecurityScan && (
1816
+ < ToggleSecurityScan
1817
+ isManifestScanEnabled = { commonState . isManifestScanEnabled }
1818
+ handleToggleSecurityScan = { handleToggleSecurityScan }
1819
+ />
1820
+ ) }
1818
1821
{ ! isDeployChartView &&
1819
1822
chartValueId !== '0' &&
1820
1823
! (
You can’t perform that action at this time.
0 commit comments