From 84c4c1d9f605597ed08925710067cd637a845711 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?syuilo=E2=AD=90=EF=B8=8F?= <Syuilotan@yahoo.co.jp> Date: Mon, 13 Mar 2017 06:04:15 +0900 Subject: [PATCH] Fix bug --- src/web/app/mobile/tags/post-detail.tag | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/web/app/mobile/tags/post-detail.tag b/src/web/app/mobile/tags/post-detail.tag index 0fd63e8328..44662a9e5c 100644 --- a/src/web/app/mobile/tags/post-detail.tag +++ b/src/web/app/mobile/tags/post-detail.tag @@ -4,8 +4,8 @@ </div> <div class="main" if={ !fetching }> <button class="read-more" if={ p.reply_to && p.reply_to.reply_to_id && context == null } onclick={ loadContext } disabled={ loadingContext }> - <i class="fa fa-ellipsis-v" if={ !loadingContext }></i> - <i class="fa fa-spinner fa-pulse" if={ loadingContext }></i> + <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 }> @@ -441,14 +441,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() }); });