mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: If the composer started open it didn't check for composer messages
This commit is contained in:
parent
2169b1ecbc
commit
e393e43ce5
1 changed files with 7 additions and 2 deletions
|
@ -90,11 +90,16 @@ const ComposerView = Ember.View.extend({
|
|||
onDrag: sizePx => this.movePanels(sizePx)
|
||||
});
|
||||
|
||||
afterTransition($replyControl, () => {
|
||||
resize();
|
||||
const triggerOpen = () => {
|
||||
if (this.get('composer.composeState') === Composer.OPEN) {
|
||||
this.appEvents.trigger('composer:opened');
|
||||
}
|
||||
};
|
||||
triggerOpen();
|
||||
|
||||
afterTransition($replyControl, () => {
|
||||
resize();
|
||||
triggerOpen();
|
||||
});
|
||||
positioningWorkaround(this.$());
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue