(null);
@@ -477,6 +477,7 @@ const ViewBucket = ({
.then((res: BucketEncryptionInfo) => {
if (res.algorithm) {
setEncryptionEnabled(true);
+ setEncryptionCfg(res);
}
setLoadingEncryption(false);
})
@@ -485,6 +486,7 @@ const ViewBucket = ({
err === "The server side encryption configuration was not found"
) {
setEncryptionEnabled(false);
+ setEncryptionCfg(null);
}
setLoadingEncryption(false);
});
@@ -718,6 +720,7 @@ const ViewBucket = ({
open={enableEncryptionScreenOpen}
selectedBucket={bucketName}
encryptionEnabled={encryptionEnabled}
+ encryptionCfg={encryptionCfg}
closeModalAndRefresh={closeEnableBucketEncryption}
/>
)}
@@ -846,15 +849,23 @@ const ViewBucket = ({
| Encryption: |
- handleEncryptionCheckbox(event)}
- checked={encryptionEnabled}
- />
+ {loadingEncryption ? (
+
+ ) : (
+
+ )}
|
@@ -880,10 +891,10 @@ const ViewBucket = ({
-
+
-
+
Reported Usage
@@ -914,17 +925,13 @@ const ViewBucket = ({
/>
) : (
- {isVersioned && !loadingVersioning ? "Yes" : "No"}
-
-
-
-
+ {isVersioned ? "Enabled" : "Disabled"}
+
)}
@@ -954,18 +961,15 @@ const ViewBucket = ({
/>
) : (
-
- {
setRetentionConfigOpen(true);
}}
>
-
-
+ Configure
+
)}
diff --git a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx
index 7a0c7dbd7..b7cb83b56 100644
--- a/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx
+++ b/portal-ui/src/screens/Console/Tenants/TenantDetails/TenantDetails.tsx
@@ -33,7 +33,6 @@ import {
Menu,
MenuItem,
TextField,
- Typography,
} from "@material-ui/core";
import Tabs from "@material-ui/core/Tabs";
import Tab from "@material-ui/core/Tab";
@@ -49,14 +48,11 @@ import { IPodListElement, IPool, ITenant } from "../ListTenants/types";
import PageHeader from "../../Common/PageHeader/PageHeader";
import UsageBarWrapper from "../../Common/UsageBarWrapper/UsageBarWrapper";
import UpdateTenantModal from "./UpdateTenantModal";
-import PencilIcon from "../../Common/TableWrapper/TableActionIcons/PencilIcon";
import { LicenseInfo } from "../../License/types";
import { Link } from "react-router-dom";
import { setErrorSnackMessage } from "../../../../actions";
-import Moment from "react-moment";
import MoreVertIcon from "@material-ui/icons/MoreVert";
import TenantYAML from "./TenantYAML";
-import Checkbox from "@material-ui/core/Checkbox";
import SubnetLicenseTenant from "./SubnetLicenseTenant";
import InputAdornment from "@material-ui/core/InputAdornment";
import SearchIcon from "@material-ui/icons/Search";
@@ -510,6 +506,10 @@ const TenantDetails = ({
)}
+
+ | State: |
+ {tenant?.currentState} |
+