mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-22 18:50:08 +03:00
Bug #3131: Fix undefined label for the capacity
(cherry picked from commit 4e4930050d653081ddb342c4a372b010e623f7e1) Conflicts: src/sunstone/public/js/plugins/provision-tab.js
This commit is contained in:
parent
8a0f49d8a4
commit
027eb86e40
@ -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>'+
|
||||
|
Loading…
x
Reference in New Issue
Block a user