mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-10-17 21:15:03 +02:00
Refresh last activity when appointment progress is changed
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
import * as DropdownMenu from "$lib/components/ui/dropdown-menu/index.js";
|
||||
import { Separator } from "$lib/components/ui/separator";
|
||||
import { type SelectAppointmentProgress } from "$lib/server/db/tenant-schema";
|
||||
import { auth } from "$lib/stores/auth";
|
||||
import { type CurAppointmentItem } from "$lib/stores/calendar";
|
||||
import { Loader2 } from "@lucide/svelte";
|
||||
import { toast } from "svelte-sonner";
|
||||
@@ -27,6 +28,7 @@
|
||||
const onChange = async () => {
|
||||
isSubmitting = true;
|
||||
|
||||
auth.refreshLastActive();
|
||||
const success = await progressAppointment({
|
||||
tenant: tenantId,
|
||||
appointment: item.appointment.id,
|
||||
|
||||
Reference in New Issue
Block a user