TeamDetail with edit,delete

ref #14
This commit is contained in:
2021-01-15 22:01:43 +01:00
parent 8f9a4ebc04
commit ccf09f97d5
4 changed files with 222 additions and 5 deletions

View File

@@ -31,12 +31,12 @@
}
};
})();
$: teams = [];
$: parentGroup = undefined;
$: orgs = [];
const orgs_promise = RunnerOrganisationService.runnerOrganisationControllerGetAll().then(
(val) => {
console.log(val);
teams = val;
orgs = val;
val.forEach((t) => {
console.log(t.name);
});
@@ -155,7 +155,7 @@
<select
bind:value={parentGroup}
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 dark:bg-gray-900 dark:text-gray-100 rounded-md p-2">
{#each teams as t}
{#each orgs as t}
<option value={t.id}>{t.name}</option>
{/each}
</select>