From 776da949c10c9528c9325c880f36c4c7639284f5 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 6 May 2019 12:55:29 +0200 Subject: [PATCH] add more description to "import from" modal --- src/app/ui/landing-page/landing-page.js | 9 ++++++--- src/app/ui/modaldialog.js | 2 +- src/app/ui/styles/modaldialog-styles.js | 3 +++ 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/src/app/ui/landing-page/landing-page.js b/src/app/ui/landing-page/landing-page.js index 8d7f15b760..2973ebadbc 100644 --- a/src/app/ui/landing-page/landing-page.js +++ b/src/app/ui/landing-page/landing-page.js @@ -90,11 +90,12 @@ export class LandingPage extends BaseApi { } render () { - let load = function (service, item, examples) { + let load = function (service, item, examples, info) { let compilerImport = new CompilerImport() let fileProviders = globalRegistry.get('fileproviders').api const msg = yo`
Enter the ${item} you would like to load. -
e.g ${examples.map((url) => { return yo`
${url}
` })}
` +
${info}
+
e.g ${examples.map((url) => { return yo`` })}
` modalDialogCustom.prompt(`Import from ${service}`, msg, null, (target) => { if (target !== '') { @@ -216,9 +217,11 @@ export class LandingPage extends BaseApi {

Import From:

- + + +
diff --git a/src/app/ui/modaldialog.js b/src/app/ui/modaldialog.js index 61c644f38d..929a4875e0 100644 --- a/src/app/ui/modaldialog.js +++ b/src/app/ui/modaldialog.js @@ -135,7 +135,7 @@ function html (opts) { - +