@@ -145,7 +145,7 @@ class FileOperations extends React.Component {
145145 }
146146 } ,
147147 ( err ) => {
148- toast . error ( "Error clearing trash" ) ;
148+ toast . error ( "Error clearing trash " + err ) ;
149149 }
150150 )
151151 }
@@ -197,11 +197,18 @@ class FileOperations extends React.Component {
197197 < div className = "float-right mb-3 mt-1 form-inline" >
198198
199199 < ButtonGroup >
200- < Button className = "mr-1 btn-outline-dark" onClick = { this . openNewFolderModal } > < i
200+ < Button className = "mr-1 btn-outline-dark" id = "CreateFolderButton"
201+ onClick = { this . openNewFolderModal } > < i
201202 className = { "fa fa-lg fa-plus" } /> </ Button >
202- < Button className = "mr-1 btn-outline-dark"
203+ < UncontrolledTooltip placement = "right" target = "CreateFolderButton" >
204+ Create a new Folder
205+ </ UncontrolledTooltip >
206+ < Button className = "mr-1 btn-outline-dark" id = "RefreshButton"
203207 onClick = { ( ) => getFilesForContainerID ( containerID ) } > < i
204208 className = { "fa fa-lg fa-repeat" } /> </ Button >
209+ < UncontrolledTooltip placement = "right" target = "RefreshButton" >
210+ Refresh Files
211+ </ UncontrolledTooltip >
205212 < Button className = { "mr-1 " + ( loadImages ? "btn-dark" : "btn-outline-dark" ) }
206213 onClick = { this . changeLoadMedia } > < i
207214 className = { "fa fa-lg fa-picture-o" } id = "LoadMediaButton" /> </ Button >
@@ -236,7 +243,7 @@ class FileOperations extends React.Component {
236243 className = "ml-1 mr-1" >
237244 < option key = { 0 } > None</ option >
238245 {
239- this . filterOptions . map ( ( item , idx ) => {
246+ this . filterOptions . map ( ( item , _ ) => {
240247 return ( < option key = { item } value = { item } > { item } </ option > )
241248 } )
242249 }
@@ -403,4 +410,4 @@ export default connect(mapStateToProps, {
403410 setSearchQuery,
404411 getAbout,
405412 setLoadImages
406- } ) ( FileOperations ) ;
413+ } ) ( FileOperations ) ;
0 commit comments