Updated Branches: refs/heads/4.3 aa2d25bf9 -> cd8501e26
CLOUDSTACK-5889: UI > Instances > (1) change service offering action: corresonding UI change for new change of scaleVirtualMachine API (that customparameter parameter has been renamed). (2) detailView: add # of CPU Cores, CPU (in MHz), Memory (in MB). Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/cd8501e2 Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/cd8501e2 Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/cd8501e2 Branch: refs/heads/4.3 Commit: cd8501e263c37e7d750b7546e4333cc6687427ba Parents: aa2d25b Author: Jessica Wang <[email protected]> Authored: Mon Jan 20 16:29:37 2014 -0800 Committer: Jessica Wang <[email protected]> Committed: Mon Jan 20 16:29:37 2014 -0800 ---------------------------------------------------------------------- ui/scripts/instances.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cloudstack/blob/cd8501e2/ui/scripts/instances.js ---------------------------------------------------------------------- diff --git a/ui/scripts/instances.js b/ui/scripts/instances.js index 5300a54..c62e45e 100644 --- a/ui/scripts/instances.js +++ b/ui/scripts/instances.js @@ -1522,17 +1522,17 @@ if (args.$form.find('.form-item[rel=cpuSpeed]').is(':visible')) { $.extend(data, { - 'customparameters[0].cpuSpeed': args.data.cpuSpeed + 'details[0].cpuSpeed': args.data.cpuSpeed }); } if (args.$form.find('.form-item[rel=cpuNumber]').is(':visible')) { $.extend(data, { - 'customparameters[0].cpuNumber': args.data.cpuNumber + 'details[0].cpuNumber': args.data.cpuNumber }); } if (args.$form.find('.form-item[rel=memory]').is(':visible')) { $.extend(data, { - 'customparameters[0].memory': args.data.memory + 'details[0].memory': args.data.memory }); } @@ -1786,6 +1786,16 @@ serviceofferingname: { label: 'label.compute.offering' }, + cpunumber: { + label: 'label.num.cpu.cores' + }, + cpuspeed: { + label: 'label.cpu.mhz' + }, + memory: { + label: 'label.memory.mb' + }, + haenable: { label: 'label.ha.enabled', converter: cloudStack.converters.toBooleanText
