mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-29 16:04:38 -04:00
[pl][names] no asyncData
This commit is contained in:
parent
b856ed3ba4
commit
10f6bf868f
@ -37,6 +37,7 @@
|
||||
</section>
|
||||
|
||||
<section>
|
||||
<Loading :value="namesRaw">
|
||||
<ul class="list-group small">
|
||||
<template v-if="visibleNames().length">
|
||||
<li v-for="name in visibleNames()" :class="['list-group-item', name.approved ? '' : 'marked']">
|
||||
@ -100,6 +101,7 @@
|
||||
</li>
|
||||
</template>
|
||||
</ul>
|
||||
</Loading>
|
||||
</section>
|
||||
|
||||
<Separator icon="plus"/>
|
||||
@ -119,15 +121,12 @@
|
||||
mixins: [ hash ],
|
||||
data() {
|
||||
return {
|
||||
namesRaw: undefined,
|
||||
filter: '',
|
||||
}
|
||||
},
|
||||
async asyncData({app}) {
|
||||
return {
|
||||
namesRaw: await app.$axios.$get(`/names`),
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
async mounted() {
|
||||
this.namesRaw = await this.$axios.$get(`/names`);
|
||||
this.handleHash('', filter => {
|
||||
this.filter = filter;
|
||||
if (filter) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user