From 756ed383ac96f83297d94c09d9dbd564c89455c6 Mon Sep 17 00:00:00 2001 From: Andy Lee Date: Fri, 31 Oct 2025 16:52:05 +0800 Subject: [PATCH] fix: namespace can't be selected the same in IP pool page (#560) * fix: the namespacess option can't be selected twice in standalone UI Signed-off-by: Andy Lee * refactor: disabled slected ns Signed-off-by: Andy Lee --------- Signed-off-by: Andy Lee --- .../Priority.vue | 5 ++++ .../PriorityRow.vue | 23 +++++++++++++------ 2 files changed, 21 insertions(+), 7 deletions(-) diff --git a/pkg/harvester/edit/loadbalancer.harvesterhci.io.ippool/Priority.vue b/pkg/harvester/edit/loadbalancer.harvesterhci.io.ippool/Priority.vue index 08dffc02..2fa0fd94 100644 --- a/pkg/harvester/edit/loadbalancer.harvesterhci.io.ippool/Priority.vue +++ b/pkg/harvester/edit/loadbalancer.harvesterhci.io.ippool/Priority.vue @@ -39,6 +39,10 @@ export default { return this.mode === _VIEW; }, + disableAdd() { + return this.isStandaloneHarvester && this.rows.some((row) => row.namespace === '*'); + }, + showAdd() { return !this.isView; }, @@ -141,6 +145,7 @@ export default { >