FIX: Flag button broken at the bottom of a topic

This commit is contained in:
Robin Ward 2015-12-09 17:08:04 -05:00
parent 1d70434de5
commit fe8c74d0b6
1 changed files with 2 additions and 1 deletions

View File

@ -1,4 +1,5 @@
import ModalFunctionality from 'discourse/mixins/modal-functionality';
import ActionSummary from 'discourse/models/action-summary';
import { MAX_MESSAGE_LENGTH } from 'discourse/models/post-action-type';
export default Ember.Controller.extend(ModalFunctionality, {
@ -33,7 +34,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
_.each(this.get("model.actions_summary"),function(a) {
a.flagTopic = self.get('model');
a.actionType = self.site.topicFlagTypeById(a.id);
const actionSummary = Discourse.ActionSummary.create(a);
const actionSummary = ActionSummary.create(a);
lookup.set(a.actionType.get('name_key'), actionSummary);
});
this.set('topicActionByName', lookup);