fix: don't show empty notes view when the database is loading

This commit is contained in:
Baptiste Grob
2020-08-24 11:31:12 +02:00
parent d96b058133
commit 80ce5800a8
2 changed files with 34 additions and 14 deletions

View File

@@ -94,7 +94,9 @@
faded="self.state.hideDate"
label="'Date'"
)
p.empty-notes-list.faded(ng-if="!self.state.renderedNotes.length") No notes.
p.empty-notes-list.faded(
ng-if="self.state.localDataLoaded && !self.state.renderedNotes.length"
) No notes.
.scrollable(ng-if="self.state.renderedNotes.length")
#notes-scrollable.infinite-scroll(
can-load='true',