@ -280,6 +280,7 @@ export function Workspace () {
< span className = "pl-3" > - create a new workspace - < / span >
< span className = "pl-3" > - create a new workspace - < / span >
}
}
< / Dropdown.Item >
< / Dropdown.Item >
< Dropdown.Item onClick = { ( ) = > { switchWorkspace ( LOCALHOST ) } } > { currentWorkspace === LOCALHOST ? < span > & # 10003 ; localhost < / span > : < span className = "pl-3" > { LOCALHOST } < / span > } < / Dropdown.Item >
{
{
global . fs . browser . workspaces . map ( ( { name , isGitRepo } , index ) = > (
global . fs . browser . workspaces . map ( ( { name , isGitRepo } , index ) = > (
< Dropdown.Item
< Dropdown.Item
@ -299,7 +300,6 @@ export function Workspace () {
< / Dropdown.Item >
< / Dropdown.Item >
) )
) )
}
}
< Dropdown.Item onClick = { ( ) = > { switchWorkspace ( LOCALHOST ) } } > { currentWorkspace === LOCALHOST ? < span > & # 10003 ; localhost < / span > : < span className = "pl-3" > { LOCALHOST } < / span > } < / Dropdown.Item >
{ ( ( global . fs . browser . workspaces . length <= 0 ) || currentWorkspace === NO_WORKSPACE ) && < Dropdown.Item onClick = { ( ) = > { switchWorkspace ( NO_WORKSPACE ) } } > { < span className = "pl-3" > NO_WORKSPACE < / span > } < / Dropdown.Item > }
{ ( ( global . fs . browser . workspaces . length <= 0 ) || currentWorkspace === NO_WORKSPACE ) && < Dropdown.Item onClick = { ( ) = > { switchWorkspace ( NO_WORKSPACE ) } } > { < span className = "pl-3" > NO_WORKSPACE < / span > } < / Dropdown.Item > }
< / Dropdown.Menu >
< / Dropdown.Menu >
< / Dropdown >
< / Dropdown >
@ -309,8 +309,7 @@ export function Workspace () {
< div className = 'h-100 remixui_fileExplorerTree' onFocus = { ( ) = > { toggleDropdown ( false ) } } >
< div className = 'h-100 remixui_fileExplorerTree' onFocus = { ( ) = > { toggleDropdown ( false ) } } >
< div className = 'h-100' >
< div className = 'h-100' >
{ ( global . fs . browser . isRequestingWorkspace || global . fs . browser . isRequestingCloning ) && < div className = "text-center py-5" > < i className = "fas fa-spinner fa-pulse fa-2x" > < / i > < / div > }
{ ( global . fs . browser . isRequestingWorkspace || global . fs . browser . isRequestingCloning ) && < div className = "text-center py-5" > < i className = "fas fa-spinner fa-pulse fa-2x" > < / i > < / div > }
{ ! ( global . fs . browser . isRequestingWorkspace ||
{ ! ( global . fs . browser . isRequestingWorkspace || global . fs . browser . isRequestingCloning ) &&
global . fs . browser . isRequestingCloning ) &&
( global . fs . mode === 'browser' ) && ( currentWorkspace !== NO_WORKSPACE ) &&
( global . fs . mode === 'browser' ) && ( currentWorkspace !== NO_WORKSPACE ) &&
< div className = 'h-100 remixui_treeview' data - id = 'filePanelFileExplorerTree' >
< div className = 'h-100 remixui_treeview' data - id = 'filePanelFileExplorerTree' >
< FileExplorer
< FileExplorer
@ -347,10 +346,9 @@ export function Workspace () {
/ >
/ >
< / div >
< / div >
}
}
{
{ global . fs . localhost . isRequestingLocalhost && < div className = "text-center py-5" > < i className = "fas fa-spinner fa-pulse fa-2x" > < / i > < / div > }
global . fs . localhost . isRequestingLocalhost ? < div className = "text-center py-5" > < i className = "fas fa-spinner fa-pulse fa-2x" > < / i > < / div >
{ ( global . fs . mode === 'localhost' && global . fs . localhost . isSuccessfulLocalhost ) &&
: < div className = 'h-100 filesystemexplorer remixui_treeview' >
< div className = 'h-100 filesystemexplorer remixui_treeview' >
{ global . fs . mode === 'localhost' && global . fs . localhost . isSuccessfulLocalhost &&
< FileExplorer
< FileExplorer
name = 'localhost'
name = 'localhost'
menuItems = { [ 'createNewFile' , 'createNewFolder' ] }
menuItems = { [ 'createNewFile' , 'createNewFolder' ] }
@ -383,7 +381,6 @@ export function Workspace () {
dispatchMoveFile = { global . dispatchMoveFile }
dispatchMoveFile = { global . dispatchMoveFile }
dispatchMoveFolder = { global . dispatchMoveFolder }
dispatchMoveFolder = { global . dispatchMoveFolder }
/ >
/ >
}
< / div >
< / div >
}
}
< / div >
< / div >