fix(wizard): EE-4350 Environment creating script should only showed for relevant type of environment (#7786)

pull/7817/head
congs 2022-10-07 15:43:06 +13:00 committed by GitHub
parent 6429546462
commit 380a64d546
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 2 deletions

View File

@ -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],
}}
/>
);