Skip to content

Commit d871729

Browse files
authored
ui: allow clearing dns during zone update (#7276)
* ui: allow clearing dns during zone update Fixes #7273 Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> * allow internal dns2 clearing Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com> --------- Signed-off-by: Abhishek Kumar <abhishek.mrt22@gmail.com>
1 parent 55e35c6 commit d871729

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ui/src/views/AutogenView.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1367,13 +1367,13 @@ export default {
13671367
continue
13681368
}
13691369
if (input === undefined || input === null ||
1370-
(input === '' && !['updateStoragePool', 'updateHost', 'updatePhysicalNetwork', 'updateDiskOffering', 'updateNetworkOffering', 'updateServiceOffering'].includes(action.api))) {
1370+
(input === '' && !['updateStoragePool', 'updateHost', 'updatePhysicalNetwork', 'updateDiskOffering', 'updateNetworkOffering', 'updateServiceOffering', 'updateZone'].includes(action.api))) {
13711371
if (param.type === 'boolean') {
13721372
params[key] = false
13731373
}
13741374
break
13751375
}
1376-
if (input === '' && !['tags', 'hosttags', 'storagetags'].includes(key)) {
1376+
if (input === '' && !['tags', 'hosttags', 'storagetags', 'dns2', 'ip6dns1', 'ip6dns2', 'internaldns2'].includes(key)) {
13771377
break
13781378
}
13791379
if (action.mapping && key in action.mapping && action.mapping[key].options) {

0 commit comments

Comments
 (0)