diff --git a/src/app/ui/landing-page/landing-page.js b/src/app/ui/landing-page/landing-page.js index 583f43e365..733e79d5d0 100644 --- a/src/app/ui/landing-page/landing-page.js +++ b/src/app/ui/landing-page/landing-page.js @@ -90,10 +90,13 @@ export class LandingPage extends BaseApi { } render () { - let load = function (service, item) { + let load = function (service, item, examples) { let compilerImport = new CompilerImport() let fileProviders = globalRegistry.get('fileproviders').api - modalDialogCustom.prompt(`Import from ${service}`, 'Enter the ' + item + ' you would like to load.', null, (target) => { + const msg = yo`
Enter the ${item} you would like to load. +
e.g ${examples.map((url) => { return yo`
${url}
` })}
` + + modalDialogCustom.prompt(`Import from ${service}`, msg, null, (target) => { if (target !== '') { compilerImport.import( target, @@ -104,6 +107,7 @@ export class LandingPage extends BaseApi { } else { if (fileProviders[type]) { fileProviders[type].addReadOnly(cleanUrl, content, url) + globalRegistry.get('verticalicon').api.select('fileExplorers') } } } @@ -212,9 +216,9 @@ export class LandingPage extends BaseApi {

Import From:

- - - + + +