FIX: Allow quoting from a closed topic while writing a reply
composer.(controller).visible is true as long as state is not 'closed'.
This commit is contained in:
parent
86690155b3
commit
f2b95c1918
|
@ -76,10 +76,10 @@ export default Controller.extend(bufferedProperty("model"), {
|
|||
}
|
||||
},
|
||||
|
||||
@discourseComputed("model.details.can_create_post")
|
||||
embedQuoteButton(canCreatePost) {
|
||||
@discourseComputed("model.details.can_create_post", "composer.visible")
|
||||
embedQuoteButton(canCreatePost, composerOpened) {
|
||||
return (
|
||||
canCreatePost &&
|
||||
(canCreatePost || composerOpened) &&
|
||||
this.currentUser &&
|
||||
this.currentUser.get("enable_quoting")
|
||||
);
|
||||
|
|
Loading…
Reference in New Issue