From 940ebff7b4296db1c802abcda5a6f2d21cd2850c Mon Sep 17 00:00:00 2001 From: Jessica Wang Date: Tue, 8 Nov 2011 17:19:43 -0800 Subject: [PATCH] cloudStack 3.0 new UI - service offering page - list view - add unit to CPU speed, Memory field. --- ui/scripts/configuration.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/ui/scripts/configuration.js b/ui/scripts/configuration.js index 60878e6fa42..371a7e20fa4 100644 --- a/ui/scripts/configuration.js +++ b/ui/scripts/configuration.js @@ -14,9 +14,19 @@ fields: { name: { label: 'Name', editable: true }, storagetype: { label: 'Storage Type' }, - cpuspeed: { label: 'CPU' }, - memory: { label: 'Memory' }, - domain: { label: 'Domain'} + cpunumber: { label: 'CPU number' }, + cpuspeed: { + label: 'CPU speed', + converter: function(args) { + return cloudStack.converters.convertHz(args); + } + }, + memory: { + label: 'Memory', + converter: function(args) { + return cloudStack.converters.convertBytes(args*1024*1024); + } + } }, actions: {