Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Commit

Permalink
revue texte et cosmétique (refs #78)
Browse files Browse the repository at this point in the history
  • Loading branch information
slafayIGN committed Jun 2, 2022
1 parent 3d24843 commit 2fae873
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/Controller/UploadController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
}
Expand Down
12 changes: 6 additions & 6 deletions templates/components/_flash_messages.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,28 @@
{% for flashMessage in app.session.flashbag.get('error') %}
<div class="flash-message flash-message-danger">
<span class="flash-message-icon icons-alert"></span>
<div class="flash-meassage-content">{{ flashMessage }}</div>
<div class="flash-message-content">{{ flashMessage }}</div>
<button class="flash-message-close-btn"><i class="icon-close"></i></button>
</div>
{% endfor %}
{% for flashMessage in app.session.flashbag.get('warning') %}
<div class="flash-message flash-message-warning">
<span class="flash-message-icon icons-circle"></span>
<div class="flash-meassage-content">{{ flashMessage }}</div>
<span class="flash-message-icon icons-status text-warning"></span>
<div class="flash-message-content">{{ flashMessage }}</div>
<button class="flash-message-close-btn"><i class="icon-close"></i></button>
</div>
{% endfor %}
{% for flashMessage in app.session.flashbag.get('notice') %}
<div class="flash-message flash-message-info">
<span class="flash-message-icon icons-circle"></span>
<div class="flash-meassage-content">{{ flashMessage }}</div>
<span class="flash-message-icon icons-status"></span>
<div class="flash-message-content">{{ flashMessage }}</div>
<button class="flash-message-close-btn"><i class="icon-close"></i></button>
</div>
{% endfor %}
{% for flashMessage in app.session.flashbag.get('success') %}
<div class="flash-message flash-message-success">
<span class="flash-message-icon icon-check-circle"></span>
<div class="flash-meassage-content">{{ flashMessage }}</div>
<div class="flash-message-content">{{ flashMessage }}</div>
<button class="flash-message-close-btn"><i class="icon-close"></i></button>
</div>
{% endfor %}
Expand Down

0 comments on commit 2fae873

Please sign in to comment.