Commit af2aefd3 authored by yann300's avatar yann300

fix migrate callback

parent e532dccc
...@@ -400,26 +400,34 @@ export class LandingPage extends ViewPlugin { ...@@ -400,26 +400,34 @@ export class LandingPage extends ViewPlugin {
document.location.reload() document.location.reload()
} }
const migrate = async () => {
tooltip('migrating workspace...')
try {
const workspaceName = await migrateToWorkspace(this.fileManager, this.filePanel)
tooltip('done. ' + workspaceName + ' created.')
} catch (e) {
return tooltip(e.message)
}
}
const migrateWorkspace = async () => { const migrateWorkspace = async () => {
modalDialog( modalDialog(
'File system Migration', 'File system Migration',
yo`<span>'Do you want to download your files to local device first?'</span>`, yo`<span>'Do you want to download your files to local device first?'</span>`,
{ {
label: 'Download und Migrate', label: 'Download und Migrate',
fn: async () => { await downloadFiles() } fn: async () => {
await downloadFiles()
migrate()
}
}, },
{ {
label: 'Migrate', label: 'Migrate',
fn: () => {} fn: () => {
migrate()
} }
)
tooltip('migrating workspace...')
try {
const workspaceName = await migrateToWorkspace(this.fileManager, this.filePanel)
tooltip('done. ' + workspaceName + ' created.')
} catch (e) {
return tooltip(e.message)
} }
)
} }
const img = yo`<img class=${css.logoImg} src="assets/img/guitarRemiCroped.webp" onclick="${() => playRemi()}"></img>` const img = yo`<img class=${css.logoImg} src="assets/img/guitarRemiCroped.webp" onclick="${() => playRemi()}"></img>`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment