File tree Expand file tree Collapse file tree 1 file changed +14
-3
lines changed
portal-ui/src/screens/Console/Buckets/ListBuckets/Objects/ListObjects Expand file tree Collapse file tree 1 file changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,9 @@ import {
2929 RewindObjectList ,
3030} from "./types" ;
3131import api from "../../../../../../common/api" ;
32- import TableWrapper from "../../../../Common/TableWrapper/TableWrapper" ;
32+ import TableWrapper , {
33+ ItemActions ,
34+ } from "../../../../Common/TableWrapper/TableWrapper" ;
3335import {
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 ;
You can’t perform that action at this time.
0 commit comments