diff --git a/src/components/AddRunnerModal.svelte b/src/components/AddRunnerModal.svelte index 57573fd7..32c0da99 100644 --- a/src/components/AddRunnerModal.svelte +++ b/src/components/AddRunnerModal.svelte @@ -2,7 +2,11 @@ import { _ } from "svelte-i18n"; import { clickOutside } from "./outsideclick"; import { focusTrap } from "svelte-focus-trap"; - import { RunnerService, RunnerTeamService } from "@odit/lfk-client-js"; + import { + RunnerService, + RunnerTeamService, + RunnerOrganizationService, + } from "@odit/lfk-client-js"; import isEmail from "validator/es/lib/isEmail"; import isMobilePhone from "validator/es/lib/isMobilePhone"; import Toastify from "toastify-js"; @@ -14,9 +18,13 @@ let middlename_input; let phone_input; let email_input; - let groups = []; + let teams = []; RunnerTeamService.runnerTeamControllerGetAll().then((val) => { - groups = val; + teams = val; + }); + let orgs = []; + RunnerOrganizationService.runnerOrganizationControllerGetAll().then((val) => { + orgs = val; }); function focus(el) { el.focus(); @@ -146,11 +154,11 @@

- Create a new Runner + {$_('create-a-new-runner')}

- Please provide the required information to add a new runner. + {$_('please-provide-the-required-information-to-add-a-new-runner')}

@@ -215,13 +223,20 @@
+ class="block text-sm font-medium text-gray-700">{$_('team')}
@@ -243,8 +258,7 @@ {#if !isPhoneValidOrEmpty} - the provided phone number is invalid.
please enter a - valid international number... + {$_('the-provided-phone-number-is-invalid-less-than-br-greater-than-please-enter-a-valid-international-number')}
{/if}