From b0ba87bac1a607f3f2e6ce0ade308f7ae04dd51d Mon Sep 17 00:00:00 2001 From: vichansson Date: Thu, 10 Oct 2024 15:38:14 +0300 Subject: [PATCH] B OpenNebula/one#6746: Always display DS limit if set (#3259) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Victor Hansson Co-authored-by: Tino Vázquez (cherry picked from commit b379fb95f8692d93ec83b347884d7f492ab6b25a) --- .../client/components/Tabs/Datastore/Info/information.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/src/fireedge/src/client/components/Tabs/Datastore/Info/information.js b/src/fireedge/src/client/components/Tabs/Datastore/Info/information.js index f9903b0894..45c1fb7019 100644 --- a/src/fireedge/src/client/components/Tabs/Datastore/Info/information.js +++ b/src/fireedge/src/client/components/Tabs/Datastore/Info/information.js @@ -21,7 +21,6 @@ import { StatusChip, LinearProgressWithLabel } from 'client/components/Status' import { List } from 'client/components/Tabs/Common' import { getState, getType, getCapacityInfo } from 'client/models/Datastore' -import { stringToBoolean } from 'client/models/Helper' import { prettyBytes } from 'client/utils' import { T, Datastore, DATASTORE_ACTIONS, DS_THRESHOLD } from 'client/constants' @@ -38,11 +37,9 @@ const InformationPanel = ({ datastore = {}, actions }) => { const { ID, NAME, BASE_PATH, TEMPLATE } = datastore - const isShared = stringToBoolean(TEMPLATE.SHARED) - const limit = - !isShared && TEMPLATE.LIMIT_MB - ? prettyBytes(TEMPLATE.LIMIT_MB, 'MB', 1) - : '-' + const limit = TEMPLATE.LIMIT_MB + ? prettyBytes(TEMPLATE.LIMIT_MB, 'MB', 1) + : '-' const { percentOfUsed, percentLabel } = getCapacityInfo(datastore) const { color: stateColor, name: stateName } = getState(datastore)