mirror of
https://github.com/harvester/harvester-ui-extension.git
synced 2026-12-02 13:18:49 +08:00
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 <andy.lee@suse.com> * refactor: disabled slected ns Signed-off-by: Andy Lee <andy.lee@suse.com> --------- Signed-off-by: Andy Lee <andy.lee@suse.com>
This commit is contained in:
1 parent
7e0a9dcd80
commit
756ed383ac
2 files changed
+21
-7
No files matched your search
@@ -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 {
|
||||
>
|
||||
<button
|
||||
type="button"
|
||||
:disabled="disableAdd"
|
||||
class="btn role-tertiary add"
|
||||
@click="add()"
|
||||
>
|
||||
|
||||
Reference in new issue
Block a user