From 39dd2f9b9b9c7b11b0f315aec95ef8e3185e4475 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Mon, 18 May 2015 14:27:29 +0930 Subject: [PATCH] Actually fade out post when it is being edited --- framework/core/js/forum/src/components/post-comment.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/framework/core/js/forum/src/components/post-comment.js b/framework/core/js/forum/src/components/post-comment.js index be57fb541..be75b83e9 100644 --- a/framework/core/js/forum/src/components/post-comment.js +++ b/framework/core/js/forum/src/components/post-comment.js @@ -4,6 +4,8 @@ import PostHeaderUser from 'flarum/components/post-header-user'; import PostHeaderMeta from 'flarum/components/post-header-meta'; import PostHeaderEdited from 'flarum/components/post-header-edited'; import PostHeaderToggle from 'flarum/components/post-header-toggle'; +import ComposerEdit from 'flarum/components/composer-edit'; +import Composer from 'flarum/components/composer'; import ItemList from 'flarum/utils/item-list'; import listItems from 'flarum/helpers/list-items'; @@ -33,7 +35,10 @@ export default class PostComment extends Post { 'post-comment': true, 'is-hidden': post.isHidden(), 'is-edited': post.isEdited(), - 'reveal-content': this.revealContent + 'reveal-content': this.revealContent, + 'editing': app.composer.component instanceof ComposerEdit && + app.composer.component.props.post === this.props.post && + app.composer.position() !== Composer.PositionEnum.MINIMIZED }) }); }