ui: Storage Pool Tags unable to delete last tag (#4611)

* UI Storage Pool Tags: unable to delete last tag

* add updatePhysicalNetwork to the list

Co-authored-by: Pearl Dsilva <pearl.dsilva@shapeblue.com>
This commit is contained in:
Pearl Dsilva 2021-01-25 12:23:44 +05:30 committed by GitHub
parent 8a9ae6fcee
commit c5b1fec11b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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', 'updatePhysicalNetwork'].includes(action.api))) {
if (param.type === 'boolean') {
params[key] = false
}