mirror of
https://github.com/portainer/portainer.git
synced 2025-08-02 20:35:25 +02:00
feat(help): EE-2724 Context sensitive help (#7694)
This commit is contained in:
parent
1b0db4971f
commit
f8b8d549fd
10 changed files with 464 additions and 13 deletions
|
@ -67,6 +67,13 @@ export function DockerSidebar({ environmentId, environment }: Props) {
|
|||
dataCy: 'portainerSidebar-host',
|
||||
};
|
||||
|
||||
const featSubMenuTo = isSwarmManager
|
||||
? 'docker.swarm.featuresConfiguration'
|
||||
: 'docker.host.featuresConfiguration';
|
||||
const registrySubMenuTo = isSwarmManager
|
||||
? 'docker.swarm.registries'
|
||||
: 'docker.host.registries';
|
||||
|
||||
return (
|
||||
<>
|
||||
<DashboardLink
|
||||
|
@ -183,14 +190,14 @@ export function DockerSidebar({ environmentId, environment }: Props) {
|
|||
environmentId={environmentId}
|
||||
>
|
||||
<SidebarItem
|
||||
to="docker.featuresConfiguration"
|
||||
to={featSubMenuTo}
|
||||
params={{ endpointId: environmentId }}
|
||||
label="Setup"
|
||||
/>
|
||||
</Authorized>
|
||||
|
||||
<SidebarItem
|
||||
to="docker.registries"
|
||||
to={registrySubMenuTo}
|
||||
params={{ endpointId: environmentId }}
|
||||
label="Registries"
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue