mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
Bug #3131: Fix undefined label for the capacity
This commit is contained in:
1 parent
7e8693d6d7
commit
4e4930050d
1 file changed
+2
-2
@@ -1979,7 +1979,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";
|
||||
}
|
||||
|
||||
@@ -2001,7 +2001,7 @@ function generate_provision_instance_type_accordion(context, capacity) {
|
||||
'<div class="large-12 large-centered columns">'+
|
||||
'<div class="row text-center">'+
|
||||
'<div class="large-6 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