diff --git a/src/components/runners/ImportRunnerModal.svelte b/src/components/runners/ImportRunnerModal.svelte
index 1797dba1..1932ca1c 100644
--- a/src/components/runners/ImportRunnerModal.svelte
+++ b/src/components/runners/ImportRunnerModal.svelte
@@ -19,7 +19,11 @@
export let current_runners;
export let import_modal_open;
$: searchvalue = "";
- $: importButtonEnabled = recent_processed && (!(selected_org_or_team == "" || selected_org_or_team == null) || !(passed_org?.id == null || passed_org?.id == 0) || !(passed_team?.id == null || passed_team?.id == 0))
+ $: importButtonEnabled =
+ recent_processed &&
+ (!(selected_org_or_team == "" || selected_org_or_team == null) ||
+ !(passed_org?.id == null || passed_org?.id == 0) ||
+ !(passed_team?.id == null || passed_team?.id == 0));
const dispatch = createEventDispatcher();
function cancelModal() {
json_output = [];
@@ -124,6 +128,13 @@
.catch((err) => {
toast.hideToast();
recent_processed = true;
+ Toastify({
+ text: $_("error-during-import"),
+ duration: 500,
+ backgroundColor:
+ "linear-gradient(90deg, hsla(281, 37%, 45%, 1) 0%, hsla(1, 62%, 48%, 1) 100%)",
+ }).showToast();
+ cancelModal();
});
}
if (opened_from === "TeamDetail") {
@@ -141,6 +152,13 @@
.catch((err) => {
toast.hideToast();
recent_processed = true;
+ Toastify({
+ text: $_("error-during-import"),
+ duration: 500,
+ backgroundColor:
+ "linear-gradient(90deg, hsla(281, 37%, 45%, 1) 0%, hsla(1, 62%, 48%, 1) 100%)",
+ }).showToast();
+ cancelModal();
});
}
if (opened_from === "RunnerOverview") {
@@ -164,6 +182,13 @@
.catch((err) => {
toast.hideToast();
recent_processed = true;
+ Toastify({
+ text: $_("error-during-import"),
+ duration: 500,
+ backgroundColor:
+ "linear-gradient(90deg, hsla(281, 37%, 45%, 1) 0%, hsla(1, 62%, 48%, 1) 100%)",
+ }).showToast();
+ cancelModal();
});
}
if (selected_org_or_team.includes("TEAM_")) {
@@ -186,6 +211,13 @@
.catch((err) => {
toast.hideToast();
recent_processed = true;
+ Toastify({
+ text: $_("error-during-import"),
+ duration: 500,
+ backgroundColor:
+ "linear-gradient(90deg, hsla(281, 37%, 45%, 1) 0%, hsla(1, 62%, 48%, 1) 100%)",
+ }).showToast();
+ cancelModal();
});
}
}
@@ -194,86 +226,86 @@
{#if import_modal_open}
-
{
- cancelModal();
-}}>
+
{
+ cancelModal();
+ }}>
-
-
-
-
-
+ class="flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0">
+
-
+ class="absolute inset-0 bg-gray-500 opacity-75"
+ data-id="modal_backdrop" />
-
-
- {$_('runner-import')}
-
-
-
-
- {#if json_output.length === 0}
-
-
- {$_('please-provide-the-required-csv-xlsx-file')}
-
-
-
-
-
- {/if}
- {#if json_output.length > 0}
- {#if opened_from === 'OrgOverview'}
-
{$_('import__target-organization')}
+
+
+
+
+
+
+
+ {$_('runner-import')}
+
+
+
+
+ {#if json_output.length === 0}
+
+
+ {$_('please-provide-the-required-csv-xlsx-file')}
+
+
+
+
+
+ {/if}
+ {#if json_output.length > 0}
+ {#if opened_from === 'OrgOverview'}
+
{$_('import__target-organization')}
-
{$_('bitte-bestaetige-diese-laeufer-fuer-den-import')}
+ name="team"
+ bind:value={selected_org}
+ class="mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm rounded-l-md sm:text-sm border-gray-300 border bg-gray-50 text-gray-500 rounded-md p-2">
+ {#each passed_orgs as o}
+
+ {/each}
+
+
{$_('bitte-bestaetige-diese-laeufer-fuer-den-import')}
{/if}
{#if opened_from === 'RunnerOverview'}
-
{$_('group')}
-