From c7ac228680aaad4b2d2e870f6da947edec5d4950 Mon Sep 17 00:00:00 2001 From: Sergio Mendolia Date: Mon, 4 Sep 2023 17:47:40 +0200 Subject: [PATCH] Add message on success --- src/Twig/UploadBookPicture.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Twig/UploadBookPicture.php b/src/Twig/UploadBookPicture.php index 771c755d..d828ee75 100644 --- a/src/Twig/UploadBookPicture.php +++ b/src/Twig/UploadBookPicture.php @@ -57,7 +57,7 @@ public function uploadFiles(Request $request, LoggerInterface $logger, BookFileS $entityManager->persist($book); $entityManager->flush(); - $this->flashMessage = null; + $this->flashMessage = 'Successfully uploaded, please reload the page'; $this->isEditing = false; return;