mirror of
https://github.com/open-reception/appointment-booking-software.git
synced 2026-09-24 18:04:52 +02:00
Fix ResponseDialog to properly sync its state
This commit is contained in:
@@ -68,6 +68,14 @@
|
||||
return unsubscribe;
|
||||
});
|
||||
|
||||
$effect(() => {
|
||||
if (open) {
|
||||
openDialog(id);
|
||||
} else {
|
||||
closeDialog(id);
|
||||
}
|
||||
});
|
||||
|
||||
onDestroy(() => {
|
||||
responsiveDialogs.update((state) => {
|
||||
const newState = new Map(state);
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
{:then tenants}
|
||||
<div class="flex flex-col items-start gap-5">
|
||||
<ResponsiveDialog
|
||||
id="add-tenant"
|
||||
id="add"
|
||||
title={m["tenants.add.title"]()}
|
||||
description={m["tenants.add.description"]()}
|
||||
triggerHidden={tenants.length === 0}
|
||||
|
||||
Reference in New Issue
Block a user