mirror of
https://github.com/portainer/portainer.git
synced 2025-08-05 05:45:22 +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
|
@ -1,5 +1,5 @@
|
|||
<div ng-if="$ctrl.registry">
|
||||
<page-header title="'Registry access'" breadcrumbs="[{label:'Registries', link:'docker.registries'}, $ctrl.registry.Name, 'Access management']"> </page-header>
|
||||
<page-header title="'Registry access'" breadcrumbs="[{label:'Registries', link:$ctrl.registryTo,}, $ctrl.registry.Name, 'Access management']"> </page-header>
|
||||
|
||||
<registry-details registry="$ctrl.registry"></registry-details>
|
||||
|
||||
|
|
|
@ -45,6 +45,10 @@ class DockerRegistryAccessController {
|
|||
|
||||
$onInit() {
|
||||
return this.$async(async () => {
|
||||
this.Authentication.redirectIfUnauthorized(['PortainerRegistryUpdateAccess']);
|
||||
|
||||
this.registryTo = window.location.hash.match(/#!\/\d+\/docker\/swarm\/registries/) ? 'docker.swarm.registries' : 'docker.host.registries';
|
||||
|
||||
try {
|
||||
this.state = {
|
||||
viewReady: false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue