11import React from 'react' ;
22import {
3- Button ,
4- ButtonDropdown ,
5- ButtonGroup ,
6- Col ,
7- DropdownItem ,
8- DropdownMenu ,
9- DropdownToggle ,
10- Form ,
11- FormGroup ,
12- Input ,
13- Modal ,
14- ModalBody ,
15- ModalFooter ,
16- ModalHeader ,
17- Row ,
18- Spinner ,
19- UncontrolledTooltip
3+ Button ,
4+ ButtonDropdown ,
5+ ButtonGroup ,
6+ Col ,
7+ DropdownItem ,
8+ DropdownMenu ,
9+ DropdownToggle ,
10+ Form ,
11+ FormGroup ,
12+ Input ,
13+ Modal ,
14+ ModalBody ,
15+ ModalFooter ,
16+ ModalHeader ,
17+ Row ,
18+ Spinner ,
19+ UncontrolledTooltip
2020} from "reactstrap" ;
2121import NewFolder from "../NewFolder/NewFolder" ;
2222import PropTypes from "prop-types" ;
2323import { connect } from "react-redux" ;
2424import {
25- changeGridMode ,
26- changeVisibilityFilter ,
27- getFilesForContainerID ,
28- navigateBack ,
29- navigateFwd ,
30- setLoadImages ,
31- setSearchQuery
25+ changeGridMode ,
26+ changeVisibilityFilter ,
27+ getFilesForContainerID ,
28+ navigateBack ,
29+ navigateFwd ,
30+ setLoadImages ,
31+ setSearchQuery
3232} from "../../../actions/explorerStateActions" ;
3333import { visibilityFilteringOptions } from "../../../utils/Constants" ;
3434import { getAbout } from "../../../actions/providerStatusActions" ;
@@ -161,11 +161,10 @@ class FileOperations extends React.Component {
161161 handleSearchOpen = ( ) => {
162162 const { containerID} = this . props ;
163163 this . setState ( ( prevState ) => {
164- if ( prevState . searchOpen )
165- {
166- // Clear Search Query if the search is about to close
167- this . props . setSearchQuery ( containerID , "" ) ;
168- }
164+ if ( prevState . searchOpen ) {
165+ // Clear Search Query if the search is about to close
166+ this . props . setSearchQuery ( containerID , "" ) ;
167+ }
169168
170169 return { searchOpen : ! prevState . searchOpen }
171170 }
@@ -180,34 +179,33 @@ class FileOperations extends React.Component {
180179 const { remoteName, remotePath} = currentPath ;
181180
182181 return (
183- < nav aria-label = "breadcrumb" className = "row mt-3 mb-1" >
184-
185-
186- < Col sm = { 4 } md = { 2 } lg = { 1 } >
187- < Button color = "light" className = { "mr-1 btn-explorer-action" }
188- onClick = { ( ) => navigateBack ( containerID ) } > < i
189- className = { "fa fa-lg fa-arrow-left" } /> </ Button >
190- < Button color = "light" className = { "mr-1 btn-explorer-action" }
191- onClick = { ( ) => navigateFwd ( containerID ) } > < i
192- className = { "fa fa-lg fa-arrow-right" } /> </ Button >
193- </ Col >
194- < Col sm = { 8 } md = { searchOpen ? 6 : 6 } lg = { searchOpen ? 7 : 9 } >
195- < ol className = "breadcrumb float-center" style = { { padding : "6px 12px" } } >
196- < li className = "breadcrumb-item active" > { remoteName } :/</ li >
197- { remotePath }
198- </ ol >
199- </ Col >
200- < Col sm = { 12 } md = { searchOpen ? 4 : 4 } lg = { searchOpen ? 4 : 2 } >
182+ < nav aria-label = "breadcrumb" className = "row mt-3 mb-1" >
183+ < Col sm = { 4 } md = { 2 } lg = { 1 } className = "pl-0" >
184+ < Button color = "light" className = { "mr-1 btn-explorer-action" }
185+ onClick = { ( ) => navigateBack ( containerID ) } > < i
186+ className = { "fa fa-lg fa-arrow-left" } /> </ Button >
187+ < Button color = "light" className = { "mr-1 btn-explorer-action" }
188+ onClick = { ( ) => navigateFwd ( containerID ) } > < i
189+ className = { "fa fa-lg fa-arrow-right" } /> </ Button >
190+ </ Col >
191+ < Col sm = { 8 } md = { searchOpen ? 6 : 6 } lg = { searchOpen ? 7 : 9 } >
192+ < ol className = "breadcrumb float-center" style = { { padding : "6px 12px" } } >
193+ < li className = "breadcrumb-item active" > { remoteName } :/</ li >
194+ { remotePath }
195+ </ ol >
196+ </ Col >
197+ < Col sm = { 12 } md = { searchOpen ? 4 : 4 } lg = { searchOpen ? 4 : 2 } className = "pr-0" >
201198 < div className = "float-right form-inline" >
202199
203200 < ButtonGroup >
204201 < Form inline >
205202 < FormGroup >
206- { searchOpen && < Input type = "text" placeholder = "Search" value = { searchQuery } className = "animate-fade-in"
207- onChange = { this . changeSearch } />
203+ { searchOpen && < Input type = "text" placeholder = "Search" value = { searchQuery }
204+ className = "animate-fade-in"
205+ onChange = { this . changeSearch } />
208206 }
209207 < Button className = "mr-1 btn-explorer-action" onClick = { this . handleSearchOpen } >
210- < i className = { "fa fa-lg " + ( searchOpen ? "fa-close" : "fa-search" ) } />
208+ < i className = { "fa fa-lg " + ( searchOpen ? "fa-close" : "fa-search" ) } />
211209 </ Button >
212210 </ FormGroup >
213211 </ Form >
@@ -237,17 +235,17 @@ class FileOperations extends React.Component {
237235 </ ButtonDropdown >
238236
239237 < Button className = "btn-explorer-action" id = "ListViewButton"
240- onClick = { this . handleChangeGridMode } >
241- < i className = { "fa fa-lg " + ( gridMode === "card" ? "fa-list" : "fa-th-large" ) } />
238+ onClick = { this . handleChangeGridMode } >
239+ < i className = { "fa fa-lg " + ( gridMode === "card" ? "fa-list" : "fa-th-large" ) } />
242240 </ Button >
243241 < UncontrolledTooltip placement = "right" target = "ListViewButton" >
244- { ( gridMode === "card" ? "List View" : "Card View" ) }
242+ { ( gridMode === "card" ? "List View" : "Card View" ) }
245243 </ UncontrolledTooltip >
246244 </ ButtonGroup >
247245
248246
249247 < NewFolder containerID = { containerID } isVisible = { newFolderModalIsVisible }
250- closeModal = { this . closeNewFolderModal } />
248+ closeModal = { this . closeNewFolderModal } />
251249
252250 < Modal isOpen = { isAboutModalOpen } toggle = { this . toggleAboutModal } >
253251 < ModalHeader >
0 commit comments