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

feat(wizard): replace-the-add-envs-button-with-env-wizard-button EE-3001 (#7013)

* feat(envs): on env click, direct user to wizard
This commit is contained in:
Ali 2022-06-03 22:33:17 +12:00 committed by GitHub
parent 0522032515
commit eb4ff12744
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 14 additions and 17 deletions

View file

@ -118,6 +118,11 @@ export function EnvironmentCreationView() {
])
),
});
if (localStorage.getItem('wizardRefferer') === 'environments') {
localStorage.removeItem('wizardRefferer');
router.stateService.go('portainer.endpoints');
return;
}
router.stateService.go('portainer.home');
}
}