mirror of https://github.com/portainer/portainer
fix(wizard): EE-4350 Environment creating script should only showed for relevant type of environment (#7786)
parent
6429546462
commit
380a64d546
|
@ -98,8 +98,12 @@ export function WizardDocker({ onCreate, isDockerStandalone }: Props) {
|
||||||
<EdgeAgentTab
|
<EdgeAgentTab
|
||||||
onCreate={(environment) => onCreate(environment, 'dockerEdgeAgent')}
|
onCreate={(environment) => onCreate(environment, 'dockerEdgeAgent')}
|
||||||
commands={{
|
commands={{
|
||||||
linux: [commandsTabs.swarmLinux, commandsTabs.standaloneLinux],
|
linux: isDockerStandalone
|
||||||
win: [commandsTabs.swarmWindows, commandsTabs.standaloneWindow],
|
? [commandsTabs.standaloneLinux]
|
||||||
|
: [commandsTabs.swarmLinux],
|
||||||
|
win: isDockerStandalone
|
||||||
|
? [commandsTabs.standaloneWindow]
|
||||||
|
: [commandsTabs.swarmWindows],
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue