Actually fade out post when it is being edited

This commit is contained in:
Toby Zerner 2015-05-18 14:27:29 +09:30
parent 0ef4469849
commit 39dd2f9b9b

View File

@ -4,6 +4,8 @@ import PostHeaderUser from 'flarum/components/post-header-user';
import PostHeaderMeta from 'flarum/components/post-header-meta'; import PostHeaderMeta from 'flarum/components/post-header-meta';
import PostHeaderEdited from 'flarum/components/post-header-edited'; import PostHeaderEdited from 'flarum/components/post-header-edited';
import PostHeaderToggle from 'flarum/components/post-header-toggle'; 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 ItemList from 'flarum/utils/item-list';
import listItems from 'flarum/helpers/list-items'; import listItems from 'flarum/helpers/list-items';
@ -33,7 +35,10 @@ export default class PostComment extends Post {
'post-comment': true, 'post-comment': true,
'is-hidden': post.isHidden(), 'is-hidden': post.isHidden(),
'is-edited': post.isEdited(), '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
}) })
}); });
} }