bindable restart input
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
const { config, id }: { config: AssistRules; id: string } = $props();
|
||||
const editedConfig = $state({ ...config });
|
||||
let formLoading = $state(false);
|
||||
let restart = $state(true);
|
||||
</script>
|
||||
|
||||
<form
|
||||
@@ -193,7 +194,7 @@
|
||||
type="checkbox"
|
||||
id="restart"
|
||||
name="restart"
|
||||
checked
|
||||
bind:checked={restart}
|
||||
/></label
|
||||
>
|
||||
<button disabled={formLoading} type="submit" class="btn btn-blue">Save</button>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
const { config, id }: { config: Configuration; id: string } = $props();
|
||||
const editedConfig = $state({ ...config });
|
||||
let formLoading = $state(false);
|
||||
let restart = $state(true);
|
||||
</script>
|
||||
|
||||
<form
|
||||
@@ -113,7 +114,7 @@
|
||||
type="checkbox"
|
||||
id="restart"
|
||||
name="restart"
|
||||
checked
|
||||
bind:checked={restart}
|
||||
/></label
|
||||
>
|
||||
<button disabled={formLoading} type="submit" class="btn btn-blue">Save</button>
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
const editedConfig = $state({ ...config });
|
||||
if (!editedConfig.sessions) editedConfig.sessions = [];
|
||||
let formLoading = $state(false);
|
||||
let restart = $state(true);
|
||||
</script>
|
||||
|
||||
<form
|
||||
@@ -339,7 +340,7 @@
|
||||
type="checkbox"
|
||||
id="restart"
|
||||
name="restart"
|
||||
checked
|
||||
bind:checked={restart}
|
||||
/></label
|
||||
>
|
||||
<button disabled={formLoading} type="submit" class="btn btn-blue">Save</button>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
const { config, id }: { config: EventRules; id: string } = $props();
|
||||
const editedConfig = $state({ ...config });
|
||||
let formLoading = $state(false);
|
||||
let restart = $state(true);
|
||||
</script>
|
||||
|
||||
<form
|
||||
@@ -229,7 +230,7 @@
|
||||
type="checkbox"
|
||||
id="restart"
|
||||
name="restart"
|
||||
checked
|
||||
bind:checked={restart}
|
||||
/></label
|
||||
>
|
||||
<button disabled={formLoading} type="submit" class="btn btn-blue">Save</button>
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
const { config, id }: { config: ServerSettings; id: string } = $props();
|
||||
const editedConfig = $state({ ...config });
|
||||
let formLoading = $state(false);
|
||||
let restart = $state(true);
|
||||
const carGroups = ['FreeForAll', 'GT3', 'GT4', 'GT2', 'GTC', 'TCX'];
|
||||
</script>
|
||||
|
||||
@@ -342,7 +343,7 @@
|
||||
type="checkbox"
|
||||
id="restart"
|
||||
name="restart"
|
||||
checked
|
||||
bind:checked={restart}
|
||||
/></label
|
||||
>
|
||||
<button disabled={formLoading} type="submit" class="btn btn-blue">Save</button>
|
||||
|
||||
Reference in New Issue
Block a user