mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: Quote widget vanished on Messages
This commit is contained in:
parent
9633cfeae1
commit
7a38360fbd
@ -19,8 +19,11 @@ export default DiscourseController.extend({
|
|||||||
// anonymous users cannot "quote-reply"
|
// anonymous users cannot "quote-reply"
|
||||||
if (!this.currentUser) return;
|
if (!this.currentUser) return;
|
||||||
|
|
||||||
// don't display the "quote-reply" button if we can't at least reply as a new topic
|
// don't display the "quote-reply" button if we can't reply
|
||||||
if (!this.get('controllers.topic.model.details.can_reply_as_new_topic')) return;
|
const topicDetails = this.get('controllers.topic.model.details');
|
||||||
|
if (!(topicDetails.get('can_reply_as_new_topic') || topicDetails.get('can_create_post'))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const selection = window.getSelection();
|
const selection = window.getSelection();
|
||||||
// no selections
|
// no selections
|
||||||
|
Loading…
Reference in New Issue
Block a user