🧹 Team cleanups

ref #14
This commit is contained in:
Philipp Dormann 2021-01-15 22:04:21 +01:00
parent ccf09f97d5
commit 07f2e65fc7
2 changed files with 4 additions and 11 deletions

View File

@ -33,15 +33,9 @@
})(); })();
$: parentGroup = undefined; $: parentGroup = undefined;
$: orgs = []; $: orgs = [];
const orgs_promise = RunnerOrganisationService.runnerOrganisationControllerGetAll().then( RunnerOrganisationService.runnerOrganisationControllerGetAll().then((val) => {
(val) => { orgs = val;
console.log(val); });
orgs = val;
val.forEach((t) => {
console.log(t.name);
});
}
);
function submit() { function submit() {
if (processed_last_submit === true) { if (processed_last_submit === true) {
processed_last_submit = false; processed_last_submit = false;
@ -54,7 +48,6 @@
name: teamname, name: teamname,
}) })
.then((result) => { .then((result) => {
console.log(result);
teamname = ""; teamname = "";
modal_open = false; modal_open = false;
// //

View File

@ -203,7 +203,7 @@
</section> </section>
{:else} {:else}
{#await promise} {#await promise}
organization detail is being loaded... team detail is being loaded...
{:catch error} {:catch error}
<PromiseError /> <PromiseError />
{/await} {/await}