Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 14 additions & 10 deletions portal-ui/src/screens/Console/Buckets/ListBuckets/ListBuckets.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -382,17 +382,21 @@ const ListBuckets = ({
MinIO uses buckets to organize objects. A bucket is
similar to a folder or directory in a filesystem, where
each bucket can hold an arbitrary number of objects.
<br />
<br />
To get started,&nbsp;
<AButton
onClick={() => {
history.push("/add-bucket");
}}
<SecureComponent
scopes={[IAM_SCOPES.S3_CREATE_BUCKET]}
resource={CONSOLE_UI_RESOURCE}
>
Create a Bucket.
</AButton>
refresh
<br />
<br />
To get started,&nbsp;
<AButton
onClick={() => {
history.push("/add-bucket");
}}
>
Create a Bucket.
</AButton>
</SecureComponent>
</Fragment>
}
/>
Expand Down
41 changes: 27 additions & 14 deletions portal-ui/src/screens/Console/Groups/Groups.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -199,11 +199,18 @@ const Groups = ({ classes, setErrorSnackMessage }: IGroupsProps) => {

<PageLayout>
<Grid item xs={12} className={classes.actionsTray}>
<SearchBox
placeholder={"Search Groups"}
onChange={setFilter}
classes={classes}
/>
<SecureComponent
resource={CONSOLE_UI_RESOURCE}
scopes={[IAM_SCOPES.ADMIN_LIST_GROUPS]}
errorProps={{ disabled: true }}
>
<SearchBox
placeholder={"Search Groups"}
onChange={setFilter}
classes={classes}
/>
</SecureComponent>

<SecureComponent
resource={CONSOLE_UI_RESOURCE}
scopes={[
Expand Down Expand Up @@ -231,14 +238,20 @@ const Groups = ({ classes, setErrorSnackMessage }: IGroupsProps) => {
{records.length > 0 && (
<Fragment>
<Grid item xs={12} className={classes.tableBlock}>
<TableWrapper
itemActions={tableActions}
columns={[{ label: "Name", elementKey: "" }]}
isLoading={loading}
records={filteredRecords}
entityName="Groups"
idField=""
/>
<SecureComponent
resource={CONSOLE_UI_RESOURCE}
scopes={[IAM_SCOPES.ADMIN_LIST_GROUPS]}
errorProps={{ disabled: true }}
>
<TableWrapper
itemActions={tableActions}
columns={[{ label: "Name", elementKey: "" }]}
isLoading={loading}
records={filteredRecords}
entityName="Groups"
idField=""
/>
</SecureComponent>
</Grid>
<Grid item xs={12}>
<HelpBox
Expand Down Expand Up @@ -285,7 +298,7 @@ const Groups = ({ classes, setErrorSnackMessage }: IGroupsProps) => {
Groups support more simplified management of user
permissions on the MinIO Tenant.
<SecureComponent
resource="console-ui"
resource={CONSOLE_UI_RESOURCE}
scopes={[
IAM_SCOPES.ADMIN_ADD_USER_TO_GROUP,
IAM_SCOPES.ADMIN_LIST_USERS,
Expand Down