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