Skip to content

Commit 998cb3b

Browse files
ioedeveloperLianaHus
authored andcommitted
Minor changes to toaster
1 parent 516f4cf commit 998cb3b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

apps/remix-ide/src/app/ui/landing-page/landing-page.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ export class LandingPage extends ViewPlugin {
322322

323323
const downloadFiles = async () => {
324324
try {
325-
tooltip('preparing files, please wait..')
326325
const fileProviders = globalRegistry.get('fileproviders').api
327326
const zip = new JSZip()
328327
await fileProviders.browser.copyFolderToJson('/', ({ path, content }) => {
@@ -331,6 +330,7 @@ export class LandingPage extends ViewPlugin {
331330
zip.folder(path, content)
332331
})
333332
zip.generateAsync({ type: 'blob' }).then(function (blob) {
333+
tooltip('Files ready for download. Do not disconnect from the internet.')
334334
saveAs(blob, 'remixdbackup.zip')
335335
}).catch((e) => {
336336
tooltip(e.message)
@@ -402,12 +402,14 @@ export class LandingPage extends ViewPlugin {
402402
}
403403

404404
const migrate = async () => {
405-
tooltip('migrating workspace...')
406405
try {
407406
const workspaceName = await migrateToWorkspace(this.fileManager, this.filePanel)
407+
408408
tooltip('done. ' + workspaceName + ' created.')
409409
} catch (e) {
410-
return tooltip(e.message)
410+
setTimeout(() => {
411+
tooltip(e.message)
412+
}, 1000)
411413
}
412414
}
413415

apps/remix-ide/src/migrateFileSystem.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export async function migrateToWorkspace (fileManager, filePanel) {
2525
const browserProvider = fileManager.getProvider('browser')
2626
const workspaceProvider = fileManager.getProvider('workspace')
2727
const files = await browserProvider.copyFolderToJson('/')
28-
console.log(files)
2928

3029
if (Object.keys(files).length === 0) {
3130
// we don't have any root file, only .workspaces

0 commit comments

Comments
 (0)