From c9bf7a32451069c0697c8a18dddad7aa1a2bd8af Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Fri, 21 Dec 2018 14:10:46 +0000 Subject: [PATCH] Add skip button to importer --- app/public/static/package_create.js | 2 ++ app/templates/packages/create_edit.html | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/public/static/package_create.js b/app/public/static/package_create.js index 86c5140..ac7b79f 100644 --- a/app/public/static/package_create.js +++ b/app/public/static/package_create.js @@ -11,6 +11,8 @@ $(function() { $(".pkg_meta").hide() $(".pkg_wiz_1").show() + + $("#pkg_wiz_1_skip").click(finish) $("#pkg_wiz_1_next").click(function() { const repoURL = $("#repo").val(); if (repoURL.trim() != "") { diff --git a/app/templates/packages/create_edit.html b/app/templates/packages/create_edit.html index 4b855fc..fee73bd 100644 --- a/app/templates/packages/create_edit.html +++ b/app/templates/packages/create_edit.html @@ -51,13 +51,14 @@

Enter the repo URL for the package. If the repo uses git then the metadata will be automatically imported.

-

Leave blank if you don't have a repo.

+

Leave blank if you don't have a repo. Click skip if the import fails.

{{ render_field(form.repo, class_="pkg_repo") }}
- Next + Next (Autoimport) + Skip Autoimport