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 {
29
29
RewindObjectList ,
30
30
} from "./types" ;
31
31
import api from "../../../../../../common/api" ;
32
- import TableWrapper from "../../../../Common/TableWrapper/TableWrapper" ;
32
+ import TableWrapper , {
33
+ ItemActions ,
34
+ } from "../../../../Common/TableWrapper/TableWrapper" ;
33
35
import {
34
36
decodeFileName ,
35
37
encodeFileName ,
@@ -763,21 +765,29 @@ const ListObjects = ({
763
765
setSelectedPreview ( null ) ;
764
766
} ;
765
767
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
+ } ,
768
775
{
769
776
type : "preview" ,
777
+ label : "Preview" ,
770
778
onClick : openPreview ,
771
779
disableButtonFunction : ( item : string ) =>
772
780
extensionPreview ( item ) === "none" ,
773
781
} ,
774
782
{
775
783
type : "share" ,
784
+ label : "Share" ,
776
785
onClick : openShare ,
777
786
disableButtonFunction : ( item : string ) => item . endsWith ( "/" ) ,
778
787
} ,
779
788
{
780
789
type : "download" ,
790
+ label : "Download" ,
781
791
onClick : downloadObject ,
782
792
showLoaderFunction : ( item : string ) =>
783
793
downloadingFiles . includes ( `${ match . params [ "bucket" ] } /${ item } ` ) ,
@@ -798,6 +808,7 @@ const ListObjects = ({
798
808
if ( displayDeleteObject ) {
799
809
tableActions . push ( {
800
810
type : "delete" ,
811
+ label : "Delete" ,
801
812
onClick : confirmDeleteObject ,
802
813
disableButtonFunction : ( ) => {
803
814
return rewindEnabled ;
You can’t perform that action at this time.
0 commit comments