Skip to content

Commit e51bde0

Browse files
authored
Add tooltips to list objects actions (#1339)
Signed-off-by: Daniel Valdivia <18384552+dvaldivia@users.noreply.github.com>
1 parent 7123c05 commit e51bde0

File tree

1 file changed

+14
-3
lines changed
  • portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects

1 file changed

+14
-3
lines changed

portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects/ListObjects.tsx

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,9 @@ import {
2929
RewindObjectList,
3030
} from "./types";
3131
import api from "../../../../../../common/api";
32-
import TableWrapper from "../../../../Common/TableWrapper/TableWrapper";
32+
import TableWrapper, {
33+
ItemActions,
34+
} from "../../../../Common/TableWrapper/TableWrapper";
3335
import {
3436
decodeFileName,
3537
encodeFileName,
@@ -763,21 +765,29 @@ const ListObjects = ({
763765
setSelectedPreview(null);
764766
};
765767

766-
const tableActions = [
767-
{ type: "view", onClick: openPath, sendOnlyId: true },
768+
const tableActions: ItemActions[] = [
769+
{
770+
type: "view",
771+
label: "View",
772+
onClick: openPath,
773+
sendOnlyId: true,
774+
},
768775
{
769776
type: "preview",
777+
label: "Preview",
770778
onClick: openPreview,
771779
disableButtonFunction: (item: string) =>
772780
extensionPreview(item) === "none",
773781
},
774782
{
775783
type: "share",
784+
label: "Share",
776785
onClick: openShare,
777786
disableButtonFunction: (item: string) => item.endsWith("/"),
778787
},
779788
{
780789
type: "download",
790+
label: "Download",
781791
onClick: downloadObject,
782792
showLoaderFunction: (item: string) =>
783793
downloadingFiles.includes(`${match.params["bucket"]}/${item}`),
@@ -798,6 +808,7 @@ const ListObjects = ({
798808
if (displayDeleteObject) {
799809
tableActions.push({
800810
type: "delete",
811+
label: "Delete",
801812
onClick: confirmDeleteObject,
802813
disableButtonFunction: () => {
803814
return rewindEnabled;

0 commit comments

Comments
 (0)