This commit is contained in:
syuilo 2018-02-19 23:37:09 +09:00
parent 55273807d2
commit 69a8e4f4b2
40 changed files with 356 additions and 303 deletions

View file

@ -351,13 +351,14 @@ export default Vue.extend({
(this as any).api('drive/files/show', {
file_id: file
}).then(file => {
this.fetching = false;
this.file = file;
this.folder = null;
this.hierarchyFolders = [];
if (file.folder) this.dive(file.folder);
this.fetching = false;
this.$emit('open-file', this.file, silent);
});
},

View file

@ -36,8 +36,8 @@ export default Vue.extend({
limit: this.limit,
offset: this.limit * this.page
}).then(users => {
this.fetching = false;
this.users = users;
this.fetching = false;
});
},
refresh() {

View file

@ -63,8 +63,8 @@ export default Vue.extend({
(this as any).api('posts/timeline', {
until_date: this.date ? (this.date as any).getTime() : undefined
}).then(posts => {
this.fetching = false;
this.posts = posts;
this.fetching = false;
if (cb) cb();
});
},

View file

@ -31,8 +31,8 @@ export default Vue.extend({
user_id: this.user.id,
with_media: this.withMedia
}).then(posts => {
this.fetching = false;
this.posts = posts;
this.fetching = false;
this.$emit('loaded');
});
}

View file

@ -41,9 +41,9 @@ export default Vue.extend({
_fetch(cb) {
this.fetching = true;
this.fetch(this.mode == 'iknow', this.limit, null, obj => {
this.fetching = false;
this.users = obj.users;
this.next = obj.next;
this.fetching = false;
if (cb) cb();
});
},