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:
parent
f584bf3830
commit
a00cb951bc
8 changed files with 74 additions and 142 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue