This commit is contained in:
syuilo 2018-02-21 01:12:18 +09:00
parent 204d4dfe31
commit e4120e930c
3 changed files with 9 additions and 4 deletions

View File

@ -10,15 +10,15 @@
<option value="calendar">カレンダー</option>
<option value="timemachine">カレンダー(タイムマシン)</option>
<option value="activity">アクティビティ</option>
<option value="rss-reader">RSSリーダー</option>
<option value="rss">RSSリーダー</option>
<option value="trends">トレンド</option>
<option value="photo-stream">フォトストリーム</option>
<option value="slideshow">スライドショー</option>
<option value="version">バージョン</option>
<option value="broadcast">ブロードキャスト</option>
<option value="notifications">通知</option>
<option value="user-recommendation">おすすめユーザー</option>
<option value="recommended-polls">投票</option>
<option value="users">おすすめユーザー</option>
<option value="polls">投票</option>
<option value="post-form">投稿フォーム</option>
<option value="messaging">メッセージ</option>
<option value="channel">チャンネル</option>

View File

@ -59,6 +59,7 @@ export default Vue.extend({
}).then(posts => {
this.posts = posts;
this.fetching = false;
this.$emit('loaded');
if (cb) cb();
});
},

View File

@ -1,6 +1,6 @@
<template>
<mk-ui>
<mk-home :mode="mode"/>
<mk-home :mode="mode" @loaded="loaded"/>
</mk-ui>
</template>
@ -40,6 +40,10 @@ export default Vue.extend({
document.removeEventListener('visibilitychange', this.onVisibilitychange);
},
methods: {
loaded() {
Progress.done();
},
onStreamPost(post) {
if (document.hidden && post.user_id != (this as any).os.i.id) {
this.unreadCount++;