mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-26 22:29:28 +09:00
[Client] Fix bug
This commit is contained in:
parent
0ec9b35139
commit
736b972bcb
@ -3,9 +3,9 @@
|
|||||||
<mk-ellipsis-icon></mk-ellipsis-icon>
|
<mk-ellipsis-icon></mk-ellipsis-icon>
|
||||||
</div>
|
</div>
|
||||||
<div class="main" if={ !fetching }>
|
<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 }>
|
<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={ !loadingContext }></i>
|
<i class="fa fa-ellipsis-v" if={ !contextFetching }></i>
|
||||||
<i class="fa fa-spinner fa-pulse" if={ loadingContext }></i>
|
<i class="fa fa-spinner fa-pulse" if={ contextFetching }></i>
|
||||||
</button>
|
</button>
|
||||||
<div class="context">
|
<div class="context">
|
||||||
<virtual each={ post in context }>
|
<virtual each={ post in context }>
|
||||||
@ -336,7 +336,7 @@
|
|||||||
this.mixin('NotImplementedException');
|
this.mixin('NotImplementedException');
|
||||||
|
|
||||||
this.fetching = true;
|
this.fetching = true;
|
||||||
this.loadingContext = false;
|
this.contextFetching = false;
|
||||||
this.context = null;
|
this.context = null;
|
||||||
this.post = null;
|
this.post = null;
|
||||||
|
|
||||||
@ -438,14 +438,14 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
this.loadContext = () => {
|
this.loadContext = () => {
|
||||||
this.loadingContext = true;
|
this.contextFetching = true;
|
||||||
|
|
||||||
// Fetch context
|
// Fetch context
|
||||||
this.api('posts/context', {
|
this.api('posts/context', {
|
||||||
post_id: this.p.reply_to_id
|
post_id: this.p.reply_to_id
|
||||||
}).then(context => {
|
}).then(context => {
|
||||||
this.update({
|
this.update({
|
||||||
loadContext: false,
|
contextFetching: false,
|
||||||
context: context.reverse()
|
context: context.reverse()
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user