@@ -38,7 +38,8 @@ import {toast} from "react-toastify";
3838import { PROP_FS_INFO } from "../../../utils/RclonePropTypes" ;
3939import newFolderImg from '../../../assets/img/new-folder.png' ;
4040import { cleanTrashForRemote } from "rclone-api" ;
41- import { createSelector } from "reselect" ; // with import
41+ import { createSelector } from "reselect" ;
42+ import FileUploadModal from "./FileUploadModal" ; // with import
4243
4344function getUrl ( currentPath ) {
4445 const { remoteName, remotePath} = currentPath ;
@@ -195,11 +196,6 @@ class FileOperations extends React.Component {
195196 changePath ( containerID , urlSplits [ 0 ] , urlSplits [ 1 ] )
196197 }
197198
198- getLg = ( n ) => {
199- const { numCols} = this . props ;
200- return Math . abs ( n * numCols ) ;
201- }
202-
203199 render ( ) {
204200 const { containerID, getFilesForContainerID, gridMode, navigateFwd, navigateBack, searchQuery, currentPath, doughnutData} = this . props ;
205201 const { newFolderModalIsVisible, dropdownOpen, isAboutModalOpen, searchOpen, tempUrl, isUrlBarFocused} = this . state ;
@@ -273,7 +269,8 @@ class FileOperations extends React.Component {
273269 < UncontrolledTooltip placement = "right" target = "InfoButton" >
274270 Show Remote Info
275271 </ UncontrolledTooltip >
276-
272+ < FileUploadModal currentPath = { currentPath } buttonLabel = { "Upload" }
273+ buttonClass = { "btn-explorer-action" } />
277274 < Form inline >
278275 < FormGroup >
279276 { searchOpen && < Input type = "text" placeholder = "Search" value = { searchQuery }
0 commit comments