|
|
@ -76,6 +76,9 @@ export function Workspace () { |
|
|
|
global.modal(intl.formatMessage({ id: 'filePanel.workspace.rename' }), renameModalMessage(), intl.formatMessage({ id: 'filePanel.ok' }), onFinishRenameWorkspace, intl.formatMessage({ id: 'filePanel.cancel' })) |
|
|
|
global.modal(intl.formatMessage({ id: 'filePanel.workspace.rename' }), renameModalMessage(), intl.formatMessage({ id: 'filePanel.ok' }), onFinishRenameWorkspace, intl.formatMessage({ id: 'filePanel.cancel' })) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const downloadCurrentWorkspace = () => { |
|
|
|
|
|
|
|
global.modal(intl.formatMessage({ id: 'filePanel.workspace.download' }), intl.formatMessage({ id: 'filePanel.workspace.downloadConfirm' }), intl.formatMessage({ id: 'filePanel.ok' }), onFinishDownloadWorkspace, intl.formatMessage({ id: 'filePanel.cancel' })) |
|
|
|
|
|
|
|
} |
|
|
|
const createWorkspace = () => { |
|
|
|
const createWorkspace = () => { |
|
|
|
global.modal(intl.formatMessage({ id: 'filePanel.workspace.create' }), createModalMessage(), intl.formatMessage({ id: 'filePanel.ok' }), onFinishCreateWorkspace, intl.formatMessage({ id: 'filePanel.cancel' })) |
|
|
|
global.modal(intl.formatMessage({ id: 'filePanel.workspace.create' }), createModalMessage(), intl.formatMessage({ id: 'filePanel.ok' }), onFinishCreateWorkspace, intl.formatMessage({ id: 'filePanel.cancel' })) |
|
|
|
} |
|
|
|
} |
|
|
@ -156,6 +159,10 @@ export function Workspace () { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const onFinishDownloadWorkspace = async () => { |
|
|
|
|
|
|
|
console.log('inside onFinishDownloadWorkspace') |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const onFinishCreateWorkspace = async () => { |
|
|
|
const onFinishCreateWorkspace = async () => { |
|
|
|
if (workspaceCreateInput.current === undefined) return |
|
|
|
if (workspaceCreateInput.current === undefined) return |
|
|
|
// @ts-ignore: Object is possibly 'null'.
|
|
|
|
// @ts-ignore: Object is possibly 'null'.
|
|
|
@ -453,9 +460,10 @@ export function Workspace () { |
|
|
|
<Dropdown.Menu as={CustomMenu} data-id="wsdropdownMenu" className='custom-dropdown-items remixui_menuwidth' rootCloseEvent="click"> |
|
|
|
<Dropdown.Menu as={CustomMenu} data-id="wsdropdownMenu" className='custom-dropdown-items remixui_menuwidth' rootCloseEvent="click"> |
|
|
|
<HamburgerMenu |
|
|
|
<HamburgerMenu |
|
|
|
createWorkspace={createWorkspace} |
|
|
|
createWorkspace={createWorkspace} |
|
|
|
|
|
|
|
renameCurrentWorkspace={renameCurrentWorkspace} |
|
|
|
|
|
|
|
downloadCurrentWorkspace={downloadCurrentWorkspace} |
|
|
|
deleteCurrentWorkspace={deleteCurrentWorkspace} |
|
|
|
deleteCurrentWorkspace={deleteCurrentWorkspace} |
|
|
|
deleteAllWorkspaces={deleteAllWorkspaces} |
|
|
|
deleteAllWorkspaces={deleteAllWorkspaces} |
|
|
|
renameCurrentWorkspace={renameCurrentWorkspace} |
|
|
|
|
|
|
|
cloneGitRepository={cloneGitRepository} |
|
|
|
cloneGitRepository={cloneGitRepository} |
|
|
|
downloadWorkspaces={downloadWorkspaces} |
|
|
|
downloadWorkspaces={downloadWorkspaces} |
|
|
|
restoreBackup={restoreBackup} |
|
|
|
restoreBackup={restoreBackup} |
|
|
|