mirror of https://github.com/apache/cloudstack.git
ui: Support to update disk/network offering tags from UI (#4923)
added support to update tags of disk and network offerings from UI fix deletion of the last tag
This commit is contained in:
parent
90fc5acda4
commit
0bbf114c79
|
|
@ -150,7 +150,7 @@ export default {
|
|||
label: 'label.edit',
|
||||
docHelp: 'adminguide/service_offerings.html#modifying-or-deleting-a-service-offering',
|
||||
dataView: true,
|
||||
args: ['name', 'displaytext']
|
||||
args: ['name', 'displaytext', 'tags']
|
||||
}, {
|
||||
api: 'updateDiskOffering',
|
||||
icon: 'lock',
|
||||
|
|
@ -216,7 +216,7 @@ export default {
|
|||
label: 'label.edit',
|
||||
docHelp: 'adminguide/service_offerings.html#modifying-or-deleting-a-service-offering',
|
||||
dataView: true,
|
||||
args: ['name', 'displaytext', 'availability'],
|
||||
args: ['name', 'displaytext', 'availability', 'tags'],
|
||||
mapping: {
|
||||
availability: {
|
||||
options: ['Optional', 'Required']
|
||||
|
|
|
|||
|
|
@ -983,13 +983,13 @@ export default {
|
|||
continue
|
||||
}
|
||||
if (!input === undefined || input === null ||
|
||||
(input === '' && !['updateStoragePool', 'updateHost', 'updatePhysicalNetwork'].includes(action.api))) {
|
||||
(input === '' && !['updateStoragePool', 'updateHost', 'updatePhysicalNetwork', 'updateDiskOffering', 'updateNetworkOffering'].includes(action.api))) {
|
||||
if (param.type === 'boolean') {
|
||||
params[key] = false
|
||||
}
|
||||
break
|
||||
}
|
||||
if (!input) {
|
||||
if (!input && !['tags'].includes(key)) {
|
||||
continue
|
||||
}
|
||||
if (action.mapping && key in action.mapping && action.mapping[key].options) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue