fix drafts list
This commit is contained in:
parent
6d362cedf9
commit
86132515ce
2 changed files with 4 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<List
|
<List
|
||||||
:items="drafts"
|
:external-items="drafts"
|
||||||
:non-interactive="true"
|
:non-interactive="true"
|
||||||
>
|
>
|
||||||
<template #item="{ item: draft }">
|
<template #item="{ item: draft }">
|
||||||
|
|
@ -58,6 +58,7 @@
|
||||||
.Drafts {
|
.Drafts {
|
||||||
.draft {
|
.draft {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.remove-all {
|
.remove-all {
|
||||||
|
|
|
||||||
|
|
@ -78,7 +78,8 @@ const List = {
|
||||||
created() {
|
created() {
|
||||||
window.addEventListener('scroll', this.scrollLoad)
|
window.addEventListener('scroll', this.scrollLoad)
|
||||||
|
|
||||||
if (this.items.length === 0) {
|
console.log(this.externalItems)
|
||||||
|
if (!this.externalItems && this.items.length === 0) {
|
||||||
this.fetchEntries()
|
this.fetchEntries()
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue