|
|
@ -108,9 +108,11 @@ export function Workspace() { |
|
|
|
// expose some UI to the plugin, perhaps not the best way to do it
|
|
|
|
// expose some UI to the plugin, perhaps not the best way to do it
|
|
|
|
if (global.plugin) { |
|
|
|
if (global.plugin) { |
|
|
|
global.plugin.loadTemplate = async () => { |
|
|
|
global.plugin.loadTemplate = async () => { |
|
|
|
|
|
|
|
await global.plugin.call('menuicons', 'select', 'filePanel') |
|
|
|
createWorkspace() |
|
|
|
createWorkspace() |
|
|
|
} |
|
|
|
} |
|
|
|
global.plugin.clone = async () => { |
|
|
|
global.plugin.clone = async () => { |
|
|
|
|
|
|
|
await global.plugin.call('menuicons', 'select', 'filePanel') |
|
|
|
cloneGitRepository() |
|
|
|
cloneGitRepository() |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -202,6 +204,7 @@ export function Workspace() { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const cloneGitRepository = () => { |
|
|
|
const cloneGitRepository = () => { |
|
|
|
|
|
|
|
console.log('clone from workspace modal') |
|
|
|
global.modal( |
|
|
|
global.modal( |
|
|
|
intl.formatMessage({ id: 'filePanel.workspace.clone' }), |
|
|
|
intl.formatMessage({ id: 'filePanel.workspace.clone' }), |
|
|
|
cloneModalMessage(), |
|
|
|
cloneModalMessage(), |
|
|
|