mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 13:55:21 +02:00
fix(wizard): EE-4350 Environment creating script should only showed for relevant type of environment (#7786)
This commit is contained in:
parent
6429546462
commit
380a64d546
1 changed files with 6 additions and 2 deletions
|
@ -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],
|
||||
}}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue