Remove bind of project month in resident calendar options
This commit is contained in:
@@ -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}
|
||||
|
||||
@@ -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"
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user