From f20b27622fc0533224fa8cae6dc12f789af8adcd Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Tue, 27 Aug 2019 10:55:24 +0200 Subject: [PATCH] See #890: Display the number of unhandled reports in the sidebar --- front/src/components/Sidebar.vue | 4 ++++ front/src/store/auth.js | 7 ++++++- front/src/store/ui.js | 6 ++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/front/src/components/Sidebar.vue b/front/src/components/Sidebar.vue index 03084a634..6f72a9c2f 100644 --- a/front/src/components/Sidebar.vue +++ b/front/src/components/Sidebar.vue @@ -95,6 +95,10 @@ class="item" :to="{name: 'manage.moderation.domains.list'}"> Moderation +
{{ $store.state.ui.notifications.pendingReviewReports }}
{ + commit('notifications', {type: 'pendingReviewReports', count: response.data.count}) + }) + }, websocketEvent ({state}, event) { let handlers = state.websocketEventsHandlers[event.type] console.log('Dispatching websocket event', event, handlers)