From d87172997073e11b52a7df3e3242a794fdfdf09a Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Tue, 11 Apr 2023 17:02:15 +0530 Subject: [PATCH] ui: allow clearing dns during zone update (#7276) * ui: allow clearing dns during zone update Fixes #7273 Signed-off-by: Abhishek Kumar * allow internal dns2 clearing Signed-off-by: Abhishek Kumar --------- Signed-off-by: Abhishek Kumar --- 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 842df0fcc6a..e2dadee44fb 100644 --- a/ui/src/views/AutogenView.vue +++ b/ui/src/views/AutogenView.vue @@ -1367,13 +1367,13 @@ export default { continue } if (input === undefined || input === null || - (input === '' && !['updateStoragePool', 'updateHost', 'updatePhysicalNetwork', 'updateDiskOffering', 'updateNetworkOffering', 'updateServiceOffering'].includes(action.api))) { + (input === '' && !['updateStoragePool', 'updateHost', 'updatePhysicalNetwork', 'updateDiskOffering', 'updateNetworkOffering', 'updateServiceOffering', 'updateZone'].includes(action.api))) { if (param.type === 'boolean') { params[key] = false } break } - if (input === '' && !['tags', 'hosttags', 'storagetags'].includes(key)) { + if (input === '' && !['tags', 'hosttags', 'storagetags', 'dns2', 'ip6dns1', 'ip6dns2', 'internaldns2'].includes(key)) { break } if (action.mapping && key in action.mapping && action.mapping[key].options) {