FIX: Showing suggested topics when composing a reply
This commit is contained in:
parent
f2a1ef8d7d
commit
30eed4c8b4
|
@ -198,6 +198,9 @@ Discourse.ComposerController = Discourse.Controller.extend({
|
||||||
open: function(opts) {
|
open: function(opts) {
|
||||||
if (!opts) opts = {};
|
if (!opts) opts = {};
|
||||||
|
|
||||||
|
var composerMessages = this.get('controllers.composerMessages');
|
||||||
|
composerMessages.reset();
|
||||||
|
|
||||||
var promise = opts.promise || Ember.Deferred.create();
|
var promise = opts.promise || Ember.Deferred.create();
|
||||||
opts.promise = promise;
|
opts.promise = promise;
|
||||||
this.set('typedReply', false);
|
this.set('typedReply', false);
|
||||||
|
|
|
@ -26,6 +26,11 @@ Discourse.ComposerMessagesController = Ember.ArrayController.extend({
|
||||||
|
|
||||||
closeMessage: function(message) {
|
closeMessage: function(message) {
|
||||||
this.removeObject(message);
|
this.removeObject(message);
|
||||||
|
},
|
||||||
|
|
||||||
|
reset: function() {
|
||||||
|
this.clear();
|
||||||
|
this.set('messagesByTemplate', {});
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
Loading…
Reference in New Issue