mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-25 02:50:08 +03:00
bug #1587: Fix progress bar size in Sunstone when the percentage is over 100%
This commit is contained in:
parent
40c78982d0
commit
b4093f2cb8
src
@ -93,7 +93,7 @@ cmd=CommandParser::CmdParser.new(ARGV) do
|
||||
|
||||
- using two disks:
|
||||
|
||||
onevm create --name "test vm" --memory 128 --cpu 1 --disk arch,data
|
||||
onetempate create --name "test vm" --memory 128 --cpu 1 --disk arch,data
|
||||
|
||||
EOT
|
||||
|
||||
|
@ -1216,6 +1216,8 @@ function quotaListItem(quota_json){
|
||||
Options: object with width, height, label and fontSize as keys
|
||||
*/
|
||||
function progressBar(value, opts){
|
||||
if (value > 100) value = 100;
|
||||
|
||||
if (!opts) opts = {};
|
||||
|
||||
if (!opts.width) opts.width = 'auto';
|
||||
|
Loading…
x
Reference in New Issue
Block a user