Fix empty folder / folder missing for empty folders at root
This commit is contained in:
parent
e56cc47105
commit
85ac12ad33
|
@ -2,9 +2,9 @@
|
||||||
<div v-if="!props.path || documents.length === 0" class="empty-container">
|
<div v-if="!props.path || documents.length === 0" class="empty-container">
|
||||||
<component :is="cog" class="cog"/>
|
<component :is="cog" class="cog"/>
|
||||||
<p v-if="!store.connected">No Connection</p>
|
<p v-if="!store.connected">No Connection</p>
|
||||||
<p v-else-if="store.document.length === 0">Waiting for Files</p>
|
<p v-else-if="store.document.length === 0">Waiting for File List</p>
|
||||||
<p v-else-if="store.query">No matches!</p>
|
<p v-else-if="store.query">No matches!</p>
|
||||||
<p v-else-if="!store.document.some(doc => `${doc.loc}/${doc.name}` === props.path.join('/'))">Folder not found.</p>
|
<p v-else-if="!store.document.some(doc => (doc.loc ? `${doc.loc}/${doc.name}` : doc.name) === props.path.join('/'))">Folder not found.</p>
|
||||||
<p v-else>Empty folder</p>
|
<p v-else>Empty folder</p>
|
||||||
</div>
|
</div>
|
||||||
<Gallery
|
<Gallery
|
||||||
|
|
Loading…
Reference in New Issue
Block a user