diff --git a/apps/remix-ide/src/app/ui/landing-page/landing-page.js b/apps/remix-ide/src/app/ui/landing-page/landing-page.js index aafece6f2f..78c5a91827 100644 --- a/apps/remix-ide/src/app/ui/landing-page/landing-page.js +++ b/apps/remix-ide/src/app/ui/landing-page/landing-page.js @@ -100,6 +100,9 @@ const css = csjs` transition: .5s ease-out; z-index: 1000; } + .migrationBtn { + width: 100px; + } } ` @@ -414,23 +417,42 @@ export class LandingPage extends ViewPlugin { }, 1000) } } + const onAcceptDownloadn = async () => { + await downloadFiles() + const el = document.getElementById('modal-dialog') + el.parentElement.removeChild(el) + migrate() + } + + const onDownload = () => { + const el = document.getElementById('modal-dialog') + el.parentElement.removeChild(el) + migrate() + } + + const onCancel = () => { + const el = document.getElementById('modal-dialog') + el.parentElement.removeChild(el) + } const migrateWorkspace = async () => { modalDialog( 'File system Migration', - yo`Do you want to download your files to local device first?`, + yo` + Do you want to download your files to local device first? +