1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-21 14:50:08 +03:00

B OpenNebula/one#6746: Fix DS LIMIT_MB parsing (#3254)

Signed-off-by: Victor Hansson <vhansson@opennebula.io>
(cherry picked from commit 8c8f053c39113190437bbafefca8e9545642b3f4)
This commit is contained in:
vichansson 2024-10-08 11:02:20 +03:00 committed by Tino Vázquez
parent 7f67cc681a
commit 9139503e59

View File

@ -40,7 +40,9 @@ const InformationPanel = ({ datastore = {}, actions }) => {
const isShared = stringToBoolean(TEMPLATE.SHARED)
const limit =
!isShared && TEMPLATE.LIMIT_MB ? prettyBytes(TEMPLATE.LIMIT_MB, 'MB') : '-'
!isShared && TEMPLATE.LIMIT_MB
? prettyBytes(TEMPLATE.LIMIT_MB, 'MB', 1)
: '-'
const { percentOfUsed, percentLabel } = getCapacityInfo(datastore)
const { color: stateColor, name: stateName } = getState(datastore)