mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-29 00:00:33 -04:00
FIX: topic footer flag button was broken
This commit is contained in:
parent
21279c7fb9
commit
6d2b85d5e5
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ export default Ember.Controller.extend(ModalFunctionality, {
|
|||
}.property('post', 'flagTopic', 'model.actions_summary.@each.can_act'),
|
||||
|
||||
staffFlagsAvailable: function() {
|
||||
return (this.get('model.flagsAvailable').length > 1);
|
||||
return (this.get('model.flagsAvailable') && this.get('model.flagsAvailable').length > 1);
|
||||
}.property('post', 'flagTopic', 'model.actions_summary.@each.can_act'),
|
||||
|
||||
submitEnabled: function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue