|
|
@ -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"> |
|
|
|