mirror of https://github.com/apache/cloudstack.git
CLOUDSTACK-8139: UI > create compute offering > server-side only supports one single host tag instead of multiple host tags. So, change UI to take in only one single host tag instead of multiple host tags in create compute dialog.
This commit is contained in:
parent
25a4f0dc53
commit
61154b92f7
|
|
@ -358,41 +358,9 @@
|
|||
});
|
||||
}
|
||||
},
|
||||
hostTags: {
|
||||
label: 'label.host.tags',
|
||||
docID: 'helpComputeOfferingHostTags',
|
||||
isTokenInput: true,
|
||||
dataProvider: function(args) {
|
||||
$.ajax({
|
||||
url: createURL("listHostTags"),
|
||||
dataType: "json",
|
||||
success: function(json) {
|
||||
var item = json.listhosttagsresponse.hosttag;
|
||||
var tags = [];
|
||||
|
||||
if (item != null)
|
||||
{
|
||||
tags = $.map(item, function(tag) {
|
||||
return {
|
||||
id: tag.name,
|
||||
name: tag.name
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
args.response.success({
|
||||
data: tags,
|
||||
hintText: _l('hint.type.part.host.tag'),
|
||||
noResultsText: _l('hint.no.host.tags')
|
||||
});
|
||||
},
|
||||
error: function(XMLHttpResponse) {
|
||||
var errorMsg = parseXMLHttpResponse(XMLHttpResponse);
|
||||
|
||||
args.response.error(errorMsg);
|
||||
}
|
||||
});
|
||||
}
|
||||
hostTags: { //Only one single host tag is supported at server-side. Multiple host tags are NOT supported at server-side.
|
||||
label: 'Host Tag',
|
||||
docID: 'helpComputeOfferingHostTags'
|
||||
},
|
||||
cpuCap: {
|
||||
label: 'label.CPU.cap',
|
||||
|
|
@ -979,7 +947,7 @@
|
|||
label: 'label.storage.tags'
|
||||
},
|
||||
hosttags: {
|
||||
label: 'label.host.tags'
|
||||
label: 'Host Tag'
|
||||
},
|
||||
domain: {
|
||||
label: 'label.domain'
|
||||
|
|
|
|||
Loading…
Reference in New Issue