Skip to content

Commit f8b212e

Browse files
Jillian InapurapuJillian Inapurapu
authored andcommitted
Removed Storage class field for Minio type tier configuration screen, fixed accesskey and secretkey fields not displaying in edit modal
1 parent 2655975 commit f8b212e

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

portal-ui/src/screens/Console/Configurations/TiersConfiguration/AddTierConfiguration.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -503,8 +503,7 @@ const AddTierConfiguration = ({ classes }: IAddNotificationEndpointProps) => {
503503
name="region"
504504
type={type as "azure" | "s3" | "minio" | "gcs"}
505505
/>
506-
{type === s3ServiceName ||
507-
(type === minioServiceName && (
506+
{type === s3ServiceName && (
508507
<InputBoxWrapper
509508
id="storageClass"
510509
name="storageClass"
@@ -515,7 +514,7 @@ const AddTierConfiguration = ({ classes }: IAddNotificationEndpointProps) => {
515514
setStorageClass(e.target.value);
516515
}}
517516
/>
518-
))}
517+
)}
519518
</Fragment>
520519
)}
521520
</Grid>

portal-ui/src/screens/Console/Configurations/TiersConfiguration/UpdateTierCredentialsModal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const UpdateTierCredentialsModal = ({
8080
useEffect(() => {
8181
let valid = true;
8282

83-
if (type === "s3" || type === "azure") {
83+
if (type === "s3" || type === "azure" || type === "minio") {
8484
if (accountName === "" || accountKey === "") {
8585
valid = false;
8686
}
@@ -95,7 +95,7 @@ const UpdateTierCredentialsModal = ({
9595
const addRecord = () => {
9696
let rules = {};
9797

98-
if (type === "s3" || type === "azure") {
98+
if (type === "s3" || type === "azure" || type === "minio") {
9999
rules = {
100100
access_key: accountName,
101101
secret_key: accountKey,
@@ -144,7 +144,7 @@ const UpdateTierCredentialsModal = ({
144144
>
145145
<Grid container>
146146
<Grid item xs={12}>
147-
{type === "s3" && (
147+
{type === "s3" || type === "minio" && (
148148
<Fragment>
149149
<div className={classes.formFieldRow}>
150150
<InputBoxWrapper

0 commit comments

Comments
 (0)