+
{{ `${labels.showAll} ${authorCount} ${labels.authorsLabel}` }}
{{ labels.showLess }}
@@ -49,11 +49,6 @@ export default {
showAllAuthors: false,
};
},
- methods: {
- toggleShowAllAuthors() {
- this.showAllAuthors = !this.showAllAuthors;
- },
- },
computed: {
displayedItems() {
if (this.showAllAuthors) {
@@ -73,6 +68,11 @@ export default {
return Object.keys(this.authors).length;
},
},
+ methods: {
+ toggleShowAllAuthors() {
+ this.showAllAuthors = !this.showAllAuthors;
+ },
+ },
};