Remove bind of project month in resident calendar options

This commit is contained in:
2026-01-13 21:02:25 +02:00
parent 92a9c6d704
commit db7623528c
4 changed files with 10 additions and 15 deletions

View File

@@ -44,6 +44,7 @@
<div class="relative">
<select
bind:value={rota.selectedMonth}
onchange={() => rota.syncProjectMonth()}
class="w-full appearance-none rounded-xl border border-zinc-200 bg-white px-4 py-3 font-semibold text-zinc-700 transition-all outline-none focus:border-zinc-400 focus:ring-4 focus:ring-zinc-100"
>
{#each monthOptions as month}
@@ -71,6 +72,7 @@
<div class="relative">
<select
bind:value={rota.selectedYear}
onchange={() => rota.syncProjectMonth()}
class="w-full appearance-none rounded-xl border border-zinc-200 bg-white px-4 py-3 font-semibold text-zinc-700 transition-all outline-none focus:border-zinc-400 focus:ring-4 focus:ring-zinc-100"
>
{#each yearOptions as year}

View File

@@ -127,7 +127,7 @@
);
}}
bind:value={resident.negativeShifts}
bind:placeholder={rota.projectMonth}
placeholder={rota.projectMonth}
numberOfMonths={1}
class="select-none"
>
@@ -241,7 +241,7 @@
return resident.negativeShifts.some((s) => s.compare(date) === 0);
}}
bind:value={resident.manualShifts}
bind:placeholder={rota.projectMonth}
placeholder={rota.projectMonth}
numberOfMonths={1}
class="select-none"
>