1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-22 14:59:41 +02:00

fix(dialog): dialog migration issues [EE-5385] (#8849)

* fix(dialog): dialog migration issues [EE-5385]

* don't highlight slider tooltip text

---------

Co-authored-by: testa113 <testa113>
This commit is contained in:
Ali 2023-05-04 16:23:27 +12:00 committed by GitHub
parent ed279ba65b
commit 14a581e86b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 120 additions and 56 deletions

View file

@ -1,5 +1,5 @@
import { confirmDelete } from '@@/modals/confirm';
import KubernetesNamespaceHelper from 'Kubernetes/helpers/namespaceHelper';
import { confirmDeleteAccess } from '@/react/kubernetes/cluster/RegistryAccessView/ConfirmDeleteAccess';
export default class KubernetesRegistryAccessController {
/* @ngInject */
@ -32,9 +32,7 @@ export default class KubernetesRegistryAccessController {
const removeNamespaces = namespaces.map(({ value }) => value);
const nsToUpdate = this.savedResourcePools.map(({ value }) => value).filter((value) => !removeNamespaces.includes(value));
const displayedMessage =
'This registry might be used by one or more applications inside this environment. Removing the registry access could lead to a service interruption for these applications.<br/><br/>Do you wish to continue?';
confirmDelete(displayedMessage).then((confirmed) => {
confirmDeleteAccess().then((confirmed) => {
if (confirmed) {
return this.updateNamespaces(nsToUpdate);
}
@ -48,6 +46,7 @@ export default class KubernetesRegistryAccessController {
namespaces,
});
this.$state.reload(this.$state.current);
this.Notifications.success('Success', 'Registry access updated');
} catch (err) {
this.Notifications.error('Failure', err, 'Failed saving registry access');
}