diff --git a/src/components/OrgOverview.svelte b/src/components/OrgOverview.svelte index a66540e0..f22ddb3a 100644 --- a/src/components/OrgOverview.svelte +++ b/src/components/OrgOverview.svelte @@ -7,18 +7,24 @@ $: searchvalue = ""; $: active_deletes = []; export let current_organizations = []; + + const promise = RunnerOrganisationService.runnerOrganisationControllerGetAll().then( + (val) => { + current_organizations = val; + } + ); {#if store.state.jwtinfo.userdetails.permissions.includes('ORGANISATION:GET')} - {#await RunnerOrganisationService.runnerOrganisationControllerGetAll()} + {#await promise}
organizations are being loaded...
{$_('this-might-take-a-moment')}