Commit 217222c9 authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

ui: Fix infinite quota display in create wizard

parent 6e99bafb
......@@ -2451,14 +2451,15 @@
value = this.get(key)
}
if (value <= 0) { value = 0 }
if (!this.is_bytes()) {
return value + "";
}
// greater than max js int (assume infinite quota)
if (value > Math.pow(2, 53)) {
return "Infinite"
}
if (!this.is_bytes()) {
return value + "";
}
return snf.util.readablizeBytes(value);
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment