From 7fc055568499bc9f9e9b563337b7a015b96167b8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?syuilo=E2=AD=90=EF=B8=8F?= <Syuilotan@yahoo.co.jp>
Date: Sun, 19 Mar 2017 01:16:55 +0900
Subject: [PATCH] Update drive.tag

---
 src/web/app/mobile/tags/drive.tag | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/web/app/mobile/tags/drive.tag b/src/web/app/mobile/tags/drive.tag
index 7edf1723d6..0375fa564c 100644
--- a/src/web/app/mobile/tags/drive.tag
+++ b/src/web/app/mobile/tags/drive.tag
@@ -41,7 +41,7 @@
 			<p if={ folder != null }>このフォルダーは空です</p>
 		</div>
 	</div>
-	<div class="fetching" if={ fetching }>
+	<div class="fetching" if={ fetching && files.length == 0 && folders.length == 0 }>
 		<div class="spinner">
 			<div class="dot1"></div>
 			<div class="dot2"></div>
@@ -441,6 +441,7 @@
 			this.api('drive/files/show', {
 				file_id: file
 			}).then(file => {
+				this.fetching = false;
 				this.file = file;
 				this.folder = null;
 				this.hierarchyFolders = [];