From d9710368022fc775b5e08d1f0543577646101729 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Fri, 22 Jan 2021 18:04:01 +0530 Subject: [PATCH 1/2] UI Storage Pool Tags: unable to delete last tag --- ui/src/views/AutogenView.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index 0cdf4a62f45f..f45190ecd3f7 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -957,7 +957,8 @@ export default { if (param.name !== key) { continue } - if (input === undefined || input === null || input === '') { + if (input === undefined || input === null || (input === '' && + !['updateStoragePool', 'updateHost'].includes(action.api))) { if (param.type === 'boolean') { params[key] = false } From c49068d2dfbcb34efc82989e2871a49678e09a82 Mon Sep 17 00:00:00 2001 From: Pearl Dsilva Date: Mon, 25 Jan 2021 10:31:23 +0530 Subject: [PATCH 2/2] add updatePhysicalNetwork to the list --- ui/src/views/AutogenView.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/views/AutogenView.vue b/ui/src/views/AutogenView.vue index f45190ecd3f7..157d7d7eb3c5 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -957,8 +957,8 @@ export default { if (param.name !== key) { continue } - if (input === undefined || input === null || (input === '' && - !['updateStoragePool', 'updateHost'].includes(action.api))) { + if (!input === undefined || input === null || + (input === '' && !['updateStoragePool', 'updateHost', 'updatePhysicalNetwork'].includes(action.api))) { if (param.type === 'boolean') { params[key] = false }