@@ -182,6 +189,14 @@
delete this.names[name.id];
this.$forceUpdate();
},
+
+ // those must be methods, not computed, because when modified, they don't get updated in the view for some reason
+ namesCountApproved() {
+ return Object.values(this.names).filter(n => n.approved).length;
+ },
+ namesCountPending() {
+ return Object.values(this.names).filter(n => !n.approved).length;
+ },
},
watch: {
filter() {