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:
Kane York 2020-03-05 16:10:12 -08:00 committed by Kane York
parent 86690155b3
commit f2b95c1918
1 changed files with 3 additions and 3 deletions

View File

@ -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")
);