From b8e6c5ea919f76e4d85a7559e32840fa40ab715f Mon Sep 17 00:00:00 2001 From: LP B Date: Fri, 3 Sep 2021 15:47:37 +0200 Subject: [PATCH] fix(app/namespace): allow default-ns registries edit from namespace page (#5554) --- .../resource-pools/edit/resourcePool.html | 20 ++++++++++++------- .../edit/resourcePoolController.js | 2 +- 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/app/kubernetes/views/resource-pools/edit/resourcePool.html b/app/kubernetes/views/resource-pools/edit/resourcePool.html index a4c19c130..90b33db11 100644 --- a/app/kubernetes/views/resource-pools/edit/resourcePool.html +++ b/app/kubernetes/views/resource-pools/edit/resourcePool.html @@ -317,16 +317,16 @@ Registries -
+
- {{ ctrl.selectedRegistries }} + {{ ctrl.selectedRegistries ? ctrl.selectedRegistries : 'None' }}
-
+

@@ -405,14 +405,14 @@ -

+
Actions
-
+
- diff --git a/app/kubernetes/views/resource-pools/edit/resourcePoolController.js b/app/kubernetes/views/resource-pools/edit/resourcePoolController.js index a2f94db49..1fe6e844d 100644 --- a/app/kubernetes/views/resource-pools/edit/resourcePoolController.js +++ b/app/kubernetes/views/resource-pools/edit/resourcePoolController.js @@ -325,7 +325,7 @@ class KubernetesResourcePoolController { this.formValues.Registries.push(reg); } }); - + this.selectedRegistries = this.formValues.Registries.map((r) => r.Name).join(', '); return; }