mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-24 05:05:20 -04:00
[neutratywy] info dla moderatorów o liczbie wpisów
This commit is contained in:
parent
0d7c284211
commit
f0a59b26f0
@ -68,6 +68,13 @@
|
|||||||
|
|
||||||
<Separator icon="book-open" colour="nouns"/>
|
<Separator icon="book-open" colour="nouns"/>
|
||||||
|
|
||||||
|
<section v-if="secret">
|
||||||
|
<div class="alert alert-info">
|
||||||
|
<strong>{{ nounsCountApproved }}</strong> wpisów zatwierdzonych,
|
||||||
|
<strong>{{ nounsCountPending }}</strong> oczekuje na moderację.
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<input class="form-control border-nouns" v-model="filter" placeholder="Filtruj listę…" ref="filter"/>
|
<input class="form-control border-nouns" v-model="filter" placeholder="Filtruj listę…" ref="filter"/>
|
||||||
</section>
|
</section>
|
||||||
@ -253,6 +260,12 @@
|
|||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
nounsCountApproved() {
|
||||||
|
return Object.values(this.nouns).filter(n => n.approved).length;
|
||||||
|
},
|
||||||
|
nounsCountPending() {
|
||||||
|
return Object.values(this.nouns).filter(n => !n.approved).length;
|
||||||
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
filter() {
|
filter() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user