File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/components/v2/appDetails/sourceInfo Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,10 @@ function EnvironmentSelectorComponent({
164
164
165
165
const deployedAppDetail = isExternalApp && params . appId && params . appId . split ( '|' )
166
166
167
+ const handleScaleWorkloads = ( ) => {
168
+ setWorkloadsModal ( true )
169
+ }
170
+
167
171
return (
168
172
< div className = "flexbox flex-justify pl-20 pr-20 pt-16 pb-16" >
169
173
< div >
@@ -280,10 +284,10 @@ function EnvironmentSelectorComponent({
280
284
Urls
281
285
</ button >
282
286
) }
283
- { ! showWorkloadsModal && ! isVirtualEnvironment && (
287
+ { ! isVirtualEnvironment && (
284
288
< button
285
289
className = "scale-workload__btn flex left cta cancel pb-6 pt-6 pl-12 pr-12 en-2 ml-6"
286
- onClick = { ( ) => setWorkloadsModal ( true ) }
290
+ onClick = { handleScaleWorkloads }
287
291
data-testid = "scale-workload-button-app-details"
288
292
>
289
293
< ScaleObjects className = "mr-4" /> Scale workloads
You can’t perform that action at this time.
0 commit comments