Neues Referee zeug
This commit is contained in:
@@ -39,7 +39,8 @@
|
||||
let member = event.maxTeamMembers;
|
||||
let schemType = event.schemType;
|
||||
let publicOnly = event.publicSchemsOnly;
|
||||
let spectateSystem = event.spectateSystem;
|
||||
let addReferee: {name: string, id: number}[] = [];
|
||||
let removeReferee: {name: string, id: number}[] = [];
|
||||
|
||||
let errorOpen = false;
|
||||
let error: any = undefined;
|
||||
@@ -65,7 +66,9 @@
|
||||
member !== event.maxTeamMembers ||
|
||||
schemType != event.schemType ||
|
||||
publicOnly !== event.publicSchemsOnly ||
|
||||
spectateSystem !== event.spectateSystem;
|
||||
addReferee.length > 0 ||
|
||||
removeReferee.length > 0;
|
||||
|
||||
|
||||
async function del() {
|
||||
try {
|
||||
@@ -87,8 +90,9 @@
|
||||
name: name,
|
||||
publicSchemsOnly: publicOnly,
|
||||
schemType: schemType ?? "null",
|
||||
spectateSystem: spectateSystem,
|
||||
start: startDate
|
||||
start: startDate,
|
||||
addReferee: addReferee.map((ref) => ref.id),
|
||||
removeReferee: removeReferee.map((ref) => ref.id)
|
||||
};
|
||||
|
||||
try {
|
||||
@@ -138,7 +142,6 @@
|
||||
<Select bind:value={schemType} items={selectTypes}/>
|
||||
</div>
|
||||
<Toggle bind:checked={publicOnly} class="mt-4">Public Schematics Only</Toggle>
|
||||
<Toggle bind:checked={spectateSystem} class="mt-4">Spectate System</Toggle>
|
||||
<div class="flex mt-4">
|
||||
<Button disabled={!changed} on:click={update}>Update</Button>
|
||||
<Button class="ml-4" color="red" on:click={() => deleteOpen = true}>Delete</Button>
|
||||
|
||||
Reference in New Issue
Block a user