summaryrefslogtreecommitdiff
path: root/src/client/app/mobile/views/components
diff options
context:
space:
mode:
authorSatsuki Yanagi <17376330+u1-liquid@users.noreply.github.com>2019-07-09 17:38:14 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2019-07-09 17:38:14 +0900
commita59ab79da083feeec57b60d4d3bfb6849147ecf1 (patch)
tree87195557d0c69973e1a3a2d7e9d133b1ac2845d4 /src/client/app/mobile/views/components
parentUpdate doc (diff)
downloadsharkey-a59ab79da083feeec57b60d4d3bfb6849147ecf1.tar.gz
sharkey-a59ab79da083feeec57b60d4d3bfb6849147ecf1.tar.bz2
sharkey-a59ab79da083feeec57b60d4d3bfb6849147ecf1.zip
Fix drive browser showing false empty (#5127)
Diffstat (limited to 'src/client/app/mobile/views/components')
-rw-r--r--src/client/app/mobile/views/components/drive.vue6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/client/app/mobile/views/components/drive.vue b/src/client/app/mobile/views/components/drive.vue
index 2613cfff99..f24c8492e5 100644
--- a/src/client/app/mobile/views/components/drive.vue
+++ b/src/client/app/mobile/views/components/drive.vue
@@ -25,17 +25,17 @@
<template v-if="folder.filesCount > 0">{{ folder.filesCount }} {{ $t('file-count') }}</template>
</p>
</div>
- <div class="folders" v-if="folders.length > 0">
+ <div class="folders" v-if="folders.length > 0 || moreFolders">
<x-folder class="folder" v-for="folder in folders" :key="folder.id" :folder="folder"/>
<p v-if="moreFolders">{{ $t('@.load-more') }}</p>
</div>
- <div class="files" v-if="files.length > 0">
+ <div class="files" v-if="files.length > 0 || moreFiles">
<x-file class="file" v-for="file in files" :key="file.id" :file="file"/>
<button class="more" v-if="moreFiles" @click="fetchMoreFiles">
{{ fetchingMoreFiles ? this.$t('@.loading') : this.$t('@.load-more') }}
</button>
</div>
- <div class="empty" v-if="files.length == 0 && folders.length == 0 && !fetching">
+ <div class="empty" v-if="files.length == 0 && !moreFiles && folders.length == 0 && !moreFolders && !fetching">
<p v-if="folder == null">{{ $t('nothing-in-drive') }}</p>
<p v-if="folder != null">{{ $t('folder-is-empty') }}</p>
</div>