timeline: folders not empty

Signed-off-by: Varun Patil <varunpatil@ucla.edu>
pull/563/head
Varun Patil 2023-03-24 16:12:10 -07:00
parent e696c5199c
commit d9e37eb0ae
1 changed files with 8 additions and 2 deletions

View File

@ -4,13 +4,13 @@
<TopMatter ref="topmatter" /> <TopMatter ref="topmatter" />
<!-- No content found and nothing is loading --> <!-- No content found and nothing is loading -->
<EmptyContent v-if="!loading && !list.length" /> <EmptyContent v-if="!loading && empty" />
<!-- Main recycler view for rows --> <!-- Main recycler view for rows -->
<RecycleScroller <RecycleScroller
ref="recycler" ref="recycler"
class="recycler hide-scrollbar" class="recycler hide-scrollbar"
:class="{ empty: !list.length }" :class="{ empty }"
:items="list" :items="list"
:emit-update="true" :emit-update="true"
:buffer="800" :buffer="800"
@ -257,10 +257,16 @@ export default defineComponent({
(this.config_sortFolderMonth && this.$route.name === "folders") (this.config_sortFolderMonth && this.$route.name === "folders")
); );
}, },
/** Get view name for dynamic top matter */ /** Get view name for dynamic top matter */
viewName(): string { viewName(): string {
return strings.viewName(this.$route.name); return strings.viewName(this.$route.name);
}, },
/** Nothing to show here */
empty(): boolean {
return !this.list.length && !this.routeIsFolders;
},
}, },
methods: { methods: {