Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
af2aefd3
Commit
af2aefd3
authored
Mar 24, 2021
by
yann300
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix migrate callback
parent
e532dccc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
9 deletions
+17
-9
landing-page.js
apps/remix-ide/src/app/ui/landing-page/landing-page.js
+17
-9
No files found.
apps/remix-ide/src/app/ui/landing-page/landing-page.js
View file @
af2aefd3
...
@@ -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>`
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment