1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-23 15:29:42 +02:00

refactor(kube/registries): migrate access table to react [EE-4706] (#10688)

This commit is contained in:
Chaim Lev-Ari 2024-04-08 17:23:12 +03:00 committed by GitHub
parent f584bf3830
commit a00cb951bc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 74 additions and 142 deletions

View file

@ -1,5 +1,4 @@
import KubernetesNamespaceHelper from 'Kubernetes/helpers/namespaceHelper';
import { confirmDeleteAccess } from '@/react/kubernetes/cluster/RegistryAccessView/ConfirmDeleteAccess';
export default class KubernetesRegistryAccessController {
/* @ngInject */
@ -32,11 +31,7 @@ export default class KubernetesRegistryAccessController {
const removeNamespaces = namespaces.map(({ value }) => value);
const nsToUpdate = this.savedResourcePools.map(({ value }) => value).filter((value) => !removeNamespaces.includes(value));
confirmDeleteAccess().then((confirmed) => {
if (confirmed) {
return this.updateNamespaces(nsToUpdate);
}
});
return this.updateNamespaces(nsToUpdate);
}
updateNamespaces(namespaces) {