current placing updated

pull/968/head
aniket-engg 4 years ago committed by Aniket
parent 0f4031f23b
commit f7df3e6e5b
  1. 4
      libs/remix-ui/file-explorer/src/lib/file-explorer-menu.tsx
  2. 10
      libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx

@ -16,12 +16,12 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => {
}, },
{ {
action: 'publishToGist', action: 'publishToGist',
title: 'Publish all the workspace files (only root) to a github gist', title: 'Publish all the current workspace files (only root) to a github gist',
icon: 'fab fa-github' icon: 'fab fa-github'
}, },
{ {
action: 'uploadFile', action: 'uploadFile',
title: 'Load a local file into workspace', title: 'Load a local file into current workspace',
icon: 'fa fa-upload' icon: 'fa fa-upload'
}, },
{ {

@ -131,7 +131,7 @@ export const Workspace = (props: WorkspaceProps) => {
/* workspace creation, renaming and deletion */ /* workspace creation, renaming and deletion */
const renameCurrentWorkspace = () => { const renameCurrentWorkspace = () => {
modal('Rename Workspace', renameModalMessage(), { modal('Rename Current Workspace', renameModalMessage(), {
label: 'OK', label: 'OK',
fn: onFinishRenameWorkspace fn: onFinishRenameWorkspace
}, { }, {
@ -151,7 +151,7 @@ export const Workspace = (props: WorkspaceProps) => {
} }
const deleteCurrentWorkspace = () => { const deleteCurrentWorkspace = () => {
modal('Delete Workspace', 'Are you sure to delete the workspace?', { modal('Delete Current Workspace', 'Are you sure to delete the current workspace?', {
label: 'OK', label: 'OK',
fn: onFinishDeleteWorkspace fn: onFinishDeleteWorkspace
}, { }, {
@ -327,7 +327,7 @@ export const Workspace = (props: WorkspaceProps) => {
createWorkspace() createWorkspace()
}} }}
className='far fa-plus-square remixui_menuicon' className='far fa-plus-square remixui_menuicon'
title='Create workspace'> title='Create'>
</span> </span>
<span <span
hidden={state.currentWorkspace === LOCALHOST || state.currentWorkspace === NO_WORKSPACE} hidden={state.currentWorkspace === LOCALHOST || state.currentWorkspace === NO_WORKSPACE}
@ -338,7 +338,7 @@ export const Workspace = (props: WorkspaceProps) => {
renameCurrentWorkspace() renameCurrentWorkspace()
}} }}
className='far fa-edit remixui_menuicon' className='far fa-edit remixui_menuicon'
title='Rename workspace'> title='Rename'>
</span> </span>
<span <span
hidden={state.currentWorkspace === LOCALHOST || state.currentWorkspace === NO_WORKSPACE} hidden={state.currentWorkspace === LOCALHOST || state.currentWorkspace === NO_WORKSPACE}
@ -349,7 +349,7 @@ export const Workspace = (props: WorkspaceProps) => {
deleteCurrentWorkspace() deleteCurrentWorkspace()
}} }}
className='fas fa-trash' className='fas fa-trash'
title='Delete workspace'> title='Delete'>
</span> </span>
</span> </span>
<select id="workspacesSelect" data-id="workspacesSelect" onChange={(e) => setWorkspace(e.target.value)} className="form-control custom-select"> <select id="workspacesSelect" data-id="workspacesSelect" onChange={(e) => setWorkspace(e.target.value)} className="form-control custom-select">

Loading…
Cancel
Save