mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
Actually fade out post when it is being edited
This commit is contained in:
parent
0ef4469849
commit
39dd2f9b9b
|
@ -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
|
||||||
})
|
})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user