mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 03:42:52 +09:00
Bug #3131: Fix undefined label for the capacity
(cherry picked from commit 4e4930050d)
Conflicts:
src/sunstone/public/js/plugins/provision-tab.js
This commit is contained in:
1 parent
8a0f49d8a4
commit
027eb86e40
1 file changed
+2
-2
@@ -2028,7 +2028,7 @@ function generate_provision_instance_type_accordion(context, capacity) {
|
||||
memory_value = Math.floor(capacity.MEMORY/1024);
|
||||
memory_unit = "GB";
|
||||
} else {
|
||||
memory_value = capacity.MEMORY;
|
||||
memory_value = (capacity.MEMORY ? capacity.MEMORY : '-');
|
||||
memory_unit = "MB";
|
||||
}
|
||||
|
||||
@@ -2050,7 +2050,7 @@ function generate_provision_instance_type_accordion(context, capacity) {
|
||||
'<div class="large-12 large-centered columns">'+
|
||||
'<div class="row text-center">'+
|
||||
'<div class="large-4 columns">'+
|
||||
'<span class="cpu_value" style="color: #777; font-size:60px">'+capacity.CPU+'</span>'+
|
||||
'<span class="cpu_value" style="color: #777; font-size:60px">'+(capacity.CPU ? capacity.CPU : '-')+'</span>'+
|
||||
'<br>'+
|
||||
'<span style="color: #999;">'+tr("CPU")+'</span>'+
|
||||
'</div>'+
|
||||
|
||||
Reference in new issue
Block a user