diff --git a/portal-ui/src/icons/TierOfflineIcon.tsx b/portal-ui/src/icons/TierOfflineIcon.tsx new file mode 100644 index 000000000..ae1972cb7 --- /dev/null +++ b/portal-ui/src/icons/TierOfflineIcon.tsx @@ -0,0 +1,37 @@ +// This file is part of MinIO Console Server +// Copyright (c) 2022 MinIO, Inc. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +import * as React from "react"; +import { SVGProps } from "react"; + +const TierOfflineIcon = (props: SVGProps) => ( + + + +); + +export default TierOfflineIcon; diff --git a/portal-ui/src/icons/TierOnlineIcon.tsx b/portal-ui/src/icons/TierOnlineIcon.tsx new file mode 100644 index 000000000..9ac7c64e7 --- /dev/null +++ b/portal-ui/src/icons/TierOnlineIcon.tsx @@ -0,0 +1,35 @@ +// This file is part of MinIO Console Server +// Copyright (c) 2022 MinIO, Inc. +// +// This program is free software: you can redistribute it and/or modify +// it under the terms of the GNU Affero General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. +// +// This program is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU Affero General Public License for more details. +// +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see . + +import * as React from "react"; +import { SVGProps } from "react"; + +const TierOnlineIcon = (props: SVGProps) => ( + + + +); + +export default TierOnlineIcon; diff --git a/portal-ui/src/screens/Console/Configurations/TiersConfiguration/ListTiersConfiguration.tsx b/portal-ui/src/screens/Console/Configurations/TiersConfiguration/ListTiersConfiguration.tsx index 37f5e8514..c8e3cc3b1 100644 --- a/portal-ui/src/screens/Console/Configurations/TiersConfiguration/ListTiersConfiguration.tsx +++ b/portal-ui/src/screens/Console/Configurations/TiersConfiguration/ListTiersConfiguration.tsx @@ -31,12 +31,7 @@ import { tableStyles, typesSelection, } from "../../Common/FormComponents/common/styleLibrary"; -import { - AddIcon, - CircleIcon, - TiersIcon, - TiersNotAvailableIcon, -} from "../../../../icons"; +import { AddIcon, TiersIcon, TiersNotAvailableIcon } from "../../../../icons"; import { ITierElement, ITierResponse } from "./types"; import { ErrorResponseHandler } from "../../../../common/types"; @@ -65,7 +60,8 @@ import { useNavigate } from "react-router-dom"; import { useAppDispatch } from "../../../../store"; import { hasPermission } from "../../../../common/SecureComponent"; import TooltipWrapper from "../../Common/TooltipWrapper/TooltipWrapper"; - +import TierOnlineIcon from "../../../../icons/TierOnlineIcon"; +import TierOfflineIcon from "../../../../icons/TierOfflineIcon"; const UpdateTierCredentialsModal = withSuspense( React.lazy(() => import("./UpdateTierCredentialsModal")) ); @@ -233,35 +229,38 @@ const ListTiersConfiguration = ({ classes }: IListTiersConfig) => { const renderTierStatus = (item: boolean) => { if (item) { return ( - - - + + ONLINE + ); } return ( - - - + + OFFLINE + ); }; @@ -364,6 +363,7 @@ const ListTiersConfiguration = ({ classes }: IListTiersConfig) => { overrideClass={classes.searchField} value={filter} /> +