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>
|
||||
<template v-else>
|
||||
<List
|
||||
:items="drafts"
|
||||
:external-items="drafts"
|
||||
:non-interactive="true"
|
||||
>
|
||||
<template #item="{ item: draft }">
|
||||
|
|
@ -58,6 +58,7 @@
|
|||
.Drafts {
|
||||
.draft {
|
||||
margin: 1em 0;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.remove-all {
|
||||
|
|
|
|||
|
|
@ -78,7 +78,8 @@ const List = {
|
|||
created() {
|
||||
window.addEventListener('scroll', this.scrollLoad)
|
||||
|
||||
if (this.items.length === 0) {
|
||||
console.log(this.externalItems)
|
||||
if (!this.externalItems && this.items.length === 0) {
|
||||
this.fetchEntries()
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue