diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-03-12 06:38:15 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-03-12 07:09:56 +0900 |
| commit | 736b972bcba71618830cbd9264f69e6caf47e59f (patch) | |
| tree | 527b2bfecfcb6a096c484d9cf77c34d04f8b56fb /src/web | |
| parent | Merge pull request #266 from syuilo/greenkeeper/redis-2.7.0 (diff) | |
| download | misskey-736b972bcba71618830cbd9264f69e6caf47e59f.tar.gz misskey-736b972bcba71618830cbd9264f69e6caf47e59f.tar.bz2 misskey-736b972bcba71618830cbd9264f69e6caf47e59f.zip | |
[Client] Fix bug
Diffstat (limited to 'src/web')
| -rw-r--r-- | src/web/app/desktop/tags/post-detail.tag | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/web/app/desktop/tags/post-detail.tag b/src/web/app/desktop/tags/post-detail.tag index 8c01c2391d..69379317fc 100644 --- a/src/web/app/desktop/tags/post-detail.tag +++ b/src/web/app/desktop/tags/post-detail.tag @@ -3,9 +3,9 @@ <mk-ellipsis-icon></mk-ellipsis-icon> </div> <div class="main" if={ !fetching }> - <button class="read-more" if={ p.reply_to && p.reply_to.reply_to_id && context == null } title="会話をもっと読み込む" onclick={ loadContext } disabled={ loadingContext }> - <i class="fa fa-ellipsis-v" if={ !loadingContext }></i> - <i class="fa fa-spinner fa-pulse" if={ loadingContext }></i> + <button class="read-more" if={ p.reply_to && p.reply_to.reply_to_id && context == null } title="会話をもっと読み込む" onclick={ loadContext } disabled={ contextFetching }> + <i class="fa fa-ellipsis-v" if={ !contextFetching }></i> + <i class="fa fa-spinner fa-pulse" if={ contextFetching }></i> </button> <div class="context"> <virtual each={ post in context }> @@ -336,7 +336,7 @@ this.mixin('NotImplementedException'); this.fetching = true; - this.loadingContext = false; + this.contextFetching = false; this.context = null; this.post = null; @@ -438,14 +438,14 @@ }; this.loadContext = () => { - this.loadingContext = true; + this.contextFetching = true; // Fetch context this.api('posts/context', { post_id: this.p.reply_to_id }).then(context => { this.update({ - loadContext: false, + contextFetching: false, context: context.reverse() }); }); |