From 29de1953a9e5f5a94314a3d3993b248b258e282d Mon Sep 17 00:00:00 2001 From: Dorazil Date: Fri, 18 Oct 2024 10:40:28 +0200 Subject: [PATCH] Fix dialog --- .../CampModule/Components/ExportDialog.php | 5 ++++ .../Components/templates/Dialog.layout.latte | 22 ++++++++-------- frontend/ts/ModalExtension.ts | 25 +++++++++++-------- 3 files changed, 31 insertions(+), 21 deletions(-) diff --git a/app/AccountancyModule/CampModule/Components/ExportDialog.php b/app/AccountancyModule/CampModule/Components/ExportDialog.php index 80f73708a..bb83f5fd4 100644 --- a/app/AccountancyModule/CampModule/Components/ExportDialog.php +++ b/app/AccountancyModule/CampModule/Components/ExportDialog.php @@ -28,6 +28,11 @@ public function handleOpen(): void $this->show(); } + public function handleClose(): void + { + $this->hide(); + } + protected function beforeRender(): void { $this->template->setFile(__DIR__ . '/templates/ExportDialog.latte'); diff --git a/app/AccountancyModule/Components/templates/Dialog.layout.latte b/app/AccountancyModule/Components/templates/Dialog.layout.latte index 3e4496e7f..64a4939d1 100644 --- a/app/AccountancyModule/Components/templates/Dialog.layout.latte +++ b/app/AccountancyModule/Components/templates/Dialog.layout.latte @@ -1,13 +1,15 @@ -