From 2fae873be9e105fd8e86c733369e43200353eff6 Mon Sep 17 00:00:00 2001 From: Sylvain Lafay Date: Thu, 2 Jun 2022 08:35:38 +0200 Subject: [PATCH] =?UTF-8?q?revue=20texte=20et=20cosm=C3=A9tique=20(refs=20?= =?UTF-8?q?#78)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Controller/UploadController.php | 2 +- templates/components/_flash_messages.html.twig | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Controller/UploadController.php b/src/Controller/UploadController.php index f5e7812..2db1aec 100644 --- a/src/Controller/UploadController.php +++ b/src/Controller/UploadController.php @@ -122,7 +122,7 @@ public function integration($datastoreId, $uploadId) if (array_key_exists('vectordb_id', $upload['tags'])) { $vectordb = $this->plageApi->storedData->get($datastoreId, $upload['tags']['vectordb_id']); if (StoredDataStatuses::DELETED == $vectordb['status']) { - $this->addFlash('notice', sprintf('La donnée %s a été supprimée', $vectordb['_id'])); + $this->addFlash('notice', sprintf('La donnée %s n\'existe plus, elle a été supprimée.', $vectordb['_id'])); return $this->redirectToRoute('plage_datastore_view', ['datastoreId' => $datastoreId]); } diff --git a/templates/components/_flash_messages.html.twig b/templates/components/_flash_messages.html.twig index 43ff622..5a90d2a 100644 --- a/templates/components/_flash_messages.html.twig +++ b/templates/components/_flash_messages.html.twig @@ -3,28 +3,28 @@ {% for flashMessage in app.session.flashbag.get('error') %}
-
{{ flashMessage }}
+
{{ flashMessage }}
{% endfor %} {% for flashMessage in app.session.flashbag.get('warning') %}
- -
{{ flashMessage }}
+ +
{{ flashMessage }}
{% endfor %} {% for flashMessage in app.session.flashbag.get('notice') %}
- -
{{ flashMessage }}
+ +
{{ flashMessage }}
{% endfor %} {% for flashMessage in app.session.flashbag.get('success') %}
-
{{ flashMessage }}
+
{{ flashMessage }}
{% endfor %}