Added bucket icons to object browser buckets listing (#2607)
Signed-off-by: Benjamin Perez <benjamin@bexsoft.net>
This commit is contained in:
@@ -18,12 +18,11 @@ import React, { Fragment, useEffect, useState } from "react";
|
|||||||
|
|
||||||
import { useNavigate } from "react-router-dom";
|
import { useNavigate } from "react-router-dom";
|
||||||
import { Theme } from "@mui/material/styles";
|
import { Theme } from "@mui/material/styles";
|
||||||
import { Button } from "mds";
|
import { BucketsIcon, Button, RefreshIcon } from "mds";
|
||||||
import createStyles from "@mui/styles/createStyles";
|
import createStyles from "@mui/styles/createStyles";
|
||||||
import { LinearProgress } from "@mui/material";
|
import { LinearProgress } from "@mui/material";
|
||||||
import Grid from "@mui/material/Grid";
|
import Grid from "@mui/material/Grid";
|
||||||
import { Bucket, BucketList } from "../Buckets/types";
|
import { Bucket, BucketList } from "../Buckets/types";
|
||||||
import { BucketsIcon } from "mds";
|
|
||||||
import {
|
import {
|
||||||
actionsTray,
|
actionsTray,
|
||||||
containerForHeader,
|
containerForHeader,
|
||||||
@@ -34,7 +33,6 @@ import api from "../../../common/api";
|
|||||||
import PageHeader from "../Common/PageHeader/PageHeader";
|
import PageHeader from "../Common/PageHeader/PageHeader";
|
||||||
|
|
||||||
import HelpBox from "../../../common/HelpBox";
|
import HelpBox from "../../../common/HelpBox";
|
||||||
import { RefreshIcon } from "mds";
|
|
||||||
import { SecureComponent } from "../../../common/SecureComponent";
|
import { SecureComponent } from "../../../common/SecureComponent";
|
||||||
import {
|
import {
|
||||||
CONSOLE_UI_RESOURCE,
|
CONSOLE_UI_RESOURCE,
|
||||||
@@ -205,7 +203,22 @@ const OBListBuckets = () => {
|
|||||||
label: "Name",
|
label: "Name",
|
||||||
elementKey: "name",
|
elementKey: "name",
|
||||||
renderFunction: (label) => (
|
renderFunction: (label) => (
|
||||||
<span id={`browse-${label}`}>{label}</span>
|
<div style={{ display: "flex" }}>
|
||||||
|
<BucketsIcon
|
||||||
|
style={{ width: 15, marginRight: 5, minWidth: 15 }}
|
||||||
|
/>
|
||||||
|
<span
|
||||||
|
id={`browse-${label}`}
|
||||||
|
style={{
|
||||||
|
whiteSpace: "nowrap",
|
||||||
|
overflow: "hidden",
|
||||||
|
textOverflow: "ellipsis",
|
||||||
|
minWidth: 0,
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{label}
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -220,6 +233,7 @@ const OBListBuckets = () => {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Access",
|
label: "Access",
|
||||||
|
elementKey: "rw_access",
|
||||||
renderFullObject: true,
|
renderFullObject: true,
|
||||||
renderFunction: (bucket: Bucket) => {
|
renderFunction: (bucket: Bucket) => {
|
||||||
let access = [];
|
let access = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user