[Client:Mobile] ✌️

This commit is contained in:
syuilo 2017-03-25 16:01:36 +09:00
parent c122f14f53
commit afbdc7ee92

View file

@ -34,7 +34,9 @@
<virtual each={ file in files }> <virtual each={ file in files }>
<mk-drive-file file={ file }></mk-drive-file> <mk-drive-file file={ file }></mk-drive-file>
</virtual> </virtual>
<button class="more" if={ moreFiles } onclick={ fetchMoreFiles }>もっと読み込む</button> <button class="more" if={ moreFiles } onclick={ fetchMoreFiles }>
{ fetchingMoreFiles ? '読み込み中' : 'もっと読み込む' }
</button>
</div> </div>
<div class="empty" if={ files.length == 0 && folders.length == 0 && !fetching }> <div class="empty" if={ files.length == 0 && folders.length == 0 && !fetching }>
<p if={ !folder == null }>ドライブには何もありません。</p> <p if={ !folder == null }>ドライブには何もありません。</p>
@ -407,7 +409,8 @@
this.fetchMoreFiles = () => { this.fetchMoreFiles = () => {
this.update({ this.update({
fetching: true fetching: true,
fetchingMoreFiles: true
}); });
const max = 30; const max = 30;
@ -425,7 +428,8 @@
} }
files.forEach(this.appendFile); files.forEach(this.appendFile);
this.update({ this.update({
fetching: false fetching: false,
fetchingMoreFiles: false
}); });
}); });
}; };