mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 03:10:46 -06:00
FIX: Be smart about refreshing the topic title when editing the OP
This commit is contained in:
parent
ca7e906774
commit
f8fa25a042
@ -485,7 +485,7 @@ export default Ember.Controller.extend({
|
||||
if (this.get('model.action') === 'edit') {
|
||||
this.appEvents.trigger('post-stream:refresh', { id: parseInt(result.responseJson.id) });
|
||||
if (result.responseJson.post.post_number === 1) {
|
||||
this.appEvents.trigger('header:show-topic', composer.get('topic'));
|
||||
this.appEvents.trigger('header:update-topic', composer.get('topic'));
|
||||
}
|
||||
} else {
|
||||
this.appEvents.trigger('post-stream:refresh');
|
||||
|
Loading…
Reference in New Issue
Block a user