From f0a59b26f0816978ce66590d5d62b5aadf72b9d7 Mon Sep 17 00:00:00 2001 From: Andrea Vos Date: Wed, 5 Aug 2020 22:24:59 +0200 Subject: [PATCH] =?UTF-8?q?[neutratywy]=20info=20dla=20moderator=C3=B3w=20?= =?UTF-8?q?o=20liczbie=20wpis=C3=B3w?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/neutratywy.vue | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/pages/neutratywy.vue b/pages/neutratywy.vue index db2d4365e..457d1f57a 100644 --- a/pages/neutratywy.vue +++ b/pages/neutratywy.vue @@ -68,6 +68,13 @@ +
+
+ {{ nounsCountApproved }} wpisów zatwierdzonych, + {{ nounsCountPending }} oczekuje na moderację. +
+
+
@@ -253,6 +260,12 @@ } }, this); }, + nounsCountApproved() { + return Object.values(this.nouns).filter(n => n.approved).length; + }, + nounsCountPending() { + return Object.values(this.nouns).filter(n => !n.approved).length; + }, }, watch: { filter() {