mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 23:53:42 +08:00
Prevent composer from accidentally redrawing when reply button is clicked
This commit is contained in:
parent
e86b796fa4
commit
37fd81c80b
|
@ -60,7 +60,7 @@ export default function(app) {
|
||||||
|
|
||||||
if (context instanceof DiscussionPage) {
|
if (context instanceof DiscussionPage) {
|
||||||
items.add('reply', !app.session.user() || this.canReply()
|
items.add('reply', !app.session.user() || this.canReply()
|
||||||
? ActionButton.component({ icon: 'reply', label: app.session.user() ? 'Reply' : 'Log In to Reply', onclick: this.replyAction.bind(this, true) })
|
? ActionButton.component({ icon: 'reply', label: app.session.user() ? 'Reply' : 'Log In to Reply', onclick: this.replyAction.bind(this, true, false) })
|
||||||
: ActionButton.component({ icon: 'reply', label: 'Can\'t Reply', className: 'disabled', title: 'You don\'t have permission to reply to this discussion.' })
|
: ActionButton.component({ icon: 'reply', label: 'Can\'t Reply', className: 'disabled', title: 'You don\'t have permission to reply to this discussion.' })
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user