1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-01 20:05:23 +02:00

feat(help): EE-2724 Context sensitive help (#7694)

This commit is contained in:
congs 2022-09-22 13:39:36 +12:00 committed by GitHub
parent 1b0db4971f
commit f8b8d549fd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 464 additions and 13 deletions

View file

@ -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,