fix(wizard): EE-4350 Environment creating script should only showed for relevant type of environment (#7787)
This commit is contained in:
@@ -98,8 +98,12 @@ export function WizardDocker({ onCreate, isDockerStandalone }: Props) {
|
||||
<EdgeAgentTab
|
||||
onCreate={(environment) => onCreate(environment, 'dockerEdgeAgent')}
|
||||
commands={{
|
||||
linux: [commandsTabs.swarmLinux, commandsTabs.standaloneLinux],
|
||||
win: [commandsTabs.swarmWindows, commandsTabs.standaloneWindow],
|
||||
linux: isDockerStandalone
|
||||
? [commandsTabs.standaloneLinux]
|
||||
: [commandsTabs.swarmLinux],
|
||||
win: isDockerStandalone
|
||||
? [commandsTabs.standaloneWindow]
|
||||
: [commandsTabs.swarmWindows],
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user