Skip to content

Commit 06a54d1

Browse files
committed
Add UI to select event type for availability rule
1 parent 7111012 commit 06a54d1

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎frontend/src/routes/availability/+page.svelte‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts">
22
import { onMount } from 'svelte';
3-
import { api, type AvailabilityRule, type AvailabilityOverride, type EventType } from '$lib/api';
3+
import {api, type AvailabilityRule, type AvailabilityOverride, type EventType} from '$lib/api';
44
import { prefs, fmtDate, weekDays } from '$lib/prefs';
55
import { t, tr, localeTag } from '$lib/i18n';
66
import { Button, buttonVariants } from '$lib/components/ui/button';
@@ -76,6 +76,7 @@
7676
const block = day.blocks[day.blocks.length - 1];
7777
try {
7878
const r = await api.post<AvailabilityRule>('/v1/availability-rules', {
79+
day_of_week: day.day_of_week,
7980
start_time: '09:00',
8081
end_time: '17:00'
8182
});

0 commit comments

Comments
 (0)