diff --git a/src/components/orgs/OrgDetail.svelte b/src/components/orgs/OrgDetail.svelte index ce547d0e..fe32bded 100644 --- a/src/components/orgs/OrgDetail.svelte +++ b/src/components/orgs/OrgDetail.svelte @@ -24,7 +24,8 @@ $: isAddress1Valid = editable.address?.address1?.trim().length !== 0; $: iszipcodevalid = editable.address?.postalcode?.trim().length !== 0; $: iscityvalid = editable.address?.city?.trim().length !== 0; - + $: sponsoring_contracts_download_open = false; + const promise = RunnerOrganizationService.runnerOrganizationControllerGetOne( params.orgid ).then((value) => { @@ -167,12 +168,53 @@
{original_object.name} - +
+
+ +
+ {#if sponsoring_contracts_download_open} +
+ +
+ {/if} +
{#if store.state.jwtinfo.userdetails.permissions.includes('RUNNER:IMPORT')} +
+
+ +
+ {#if sponsoring_contracts_download_open} +
+ +
+ {/if} +
{/if}
diff --git a/src/components/runners/RunnersOverview.svelte b/src/components/runners/RunnersOverview.svelte index 5bdd4c89..321bd563 100644 --- a/src/components/runners/RunnersOverview.svelte +++ b/src/components/runners/RunnersOverview.svelte @@ -20,6 +20,7 @@ $: filter__teams = selectedFilter_teams || []; $: filter__orgs = selectedFilter || []; $: filterGroupIDs = filter__teams.concat(filter__orgs).map((i) => i.value); + $: sponsoring_contracts_download_open = false; $: teams = []; $: orgs = []; $: mappedteams = teams.map(function (g) { @@ -128,14 +129,53 @@
{#if current_runners.some((r) => r.is_selected === true)} - +
+
+ +
+ {#if sponsoring_contracts_download_open} +
+ +
+ {/if} +
{/if}
{original.name} - +
+
+ +
+ {#if sponsoring_contracts_download_open} +
+ +
+ {/if} +
{#if store.state.jwtinfo.userdetails.permissions.includes('RUNNER:IMPORT')} +
+
+ +
+ {#if sponsoring_contracts_download_open} +
+ +
+ {/if} +
{/if}