ui: Allow editing host and storage tags in updateHost & updatStoragePool forms (#6375)

This commit is contained in:
Pearl Dsilva 2022-05-11 16:36:19 +05:30 committed by GitHub
parent eb9c00f26f
commit c0124e2753
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1066,10 +1066,10 @@ export default {
this.showAction = true
const listIconForFillValues = ['copy-outlined', 'CopyOutlined', 'edit-outlined', 'EditOutlined', 'share-alt-outlined', 'ShareAltOutlined']
for (const param of this.currentAction.paramFields) {
this.setRules(param)
if (param.type === 'list' && ['tags', 'hosttags', 'storagetags', 'files'].includes(param.name)) {
param.type = 'string'
}
this.setRules(param)
if (param.type === 'uuid' || param.type === 'list' || param.name === 'account' || (this.currentAction.mapping && param.name in this.currentAction.mapping)) {
this.listUuidOpts(param)
}