Update for Season 2026
All checks were successful
Build Formula12 Docker Image / pocketbase-docker (push) Successful in 39s
All checks were successful
Build Formula12 Docker Image / pocketbase-docker (push) Successful in 39s
This commit is contained in:
@ -55,7 +55,7 @@
|
||||
let wcc_value: string = $state(seasonpick?.wccwinner ?? "");
|
||||
let overtakes_value: string = $state(seasonpick?.mostovertakes ?? "");
|
||||
let dnfs_value: string = $state(seasonpick?.mostdnfs ?? "");
|
||||
let doohan_value: string = $state(seasonpick?.doohanstarts.toString() ?? "");
|
||||
let liveries_value: string = $state(seasonpick?.liveries ?? "");
|
||||
|
||||
let teamwinners_input: string = $state("");
|
||||
let teamwinners_chips: string[] = $state([]);
|
||||
@ -140,7 +140,7 @@
|
||||
if (disabled || !drivers) return;
|
||||
|
||||
// Can only select 10 drivers
|
||||
if (teamwinners_chips.length >= 10) return;
|
||||
if (teamwinners_chips.length >= 11) return;
|
||||
|
||||
// Can only select a driver once
|
||||
if (teamwinners_chips.includes(event.detail.value)) return;
|
||||
@ -208,18 +208,11 @@
|
||||
toastStore.trigger(get_error_toast("Please select a driver for most DNFs!"));
|
||||
return;
|
||||
}
|
||||
if (
|
||||
!doohan_value ||
|
||||
doohan_value === "" ||
|
||||
parseInt(doohan_value) <= 0 ||
|
||||
parseInt(doohan_value) > 24
|
||||
) {
|
||||
toastStore.trigger(
|
||||
get_error_toast("Please enter between 0 and 24 starts for Jack Doohan!"),
|
||||
);
|
||||
if (!liveries_value || liveries_value === "") {
|
||||
toastStore.trigger(get_error_toast("Please select a team for most liveries!"));
|
||||
return;
|
||||
}
|
||||
if (!teamwinners_ids || teamwinners_ids.length !== 10) {
|
||||
if (!teamwinners_ids || teamwinners_ids.length !== 11) {
|
||||
toastStore.trigger(get_error_toast("Please select a winner for each team!"));
|
||||
return;
|
||||
}
|
||||
@ -235,7 +228,7 @@
|
||||
wccwinner: wcc_value,
|
||||
mostovertakes: overtakes_value,
|
||||
mostdnfs: dnfs_value,
|
||||
doohanstarts: doohan_value,
|
||||
liveries: liveries_value,
|
||||
teamwinners: teamwinners_ids,
|
||||
podiums: podiums_ids,
|
||||
};
|
||||
@ -324,18 +317,16 @@
|
||||
Most DNFs
|
||||
</Dropdown>
|
||||
|
||||
<!-- Doohan Starts -->
|
||||
<Input
|
||||
type="number"
|
||||
min={0}
|
||||
max={24}
|
||||
bind:value={doohan_value}
|
||||
<!-- Liveries -->
|
||||
<Dropdown
|
||||
bind:value={liveries_value}
|
||||
options={team_dropdown_options(teams)}
|
||||
{labelwidth}
|
||||
{disabled}
|
||||
{required}
|
||||
>
|
||||
Doohan Starts
|
||||
</Input>
|
||||
Most Liveries
|
||||
</Dropdown>
|
||||
|
||||
<!-- Teamwinners autocomplete chips -->
|
||||
<InputChip
|
||||
|
||||
Reference in New Issue
Block a user