Skip to content

Commit

Permalink
Fix multiple topics available bug
Browse files Browse the repository at this point in the history
  • Loading branch information
gdpelican committed Sep 23, 2015
1 parent 3d07748 commit cb32a53
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions assets/javascripts/discourse/components/babble-menu.js.es6
Expand Up @@ -25,10 +25,9 @@ export default Ember.Component.extend({
return _.filter(Discourse.Babble.availableTopics, function(topic) { return topic.id != currentTopicId })
}.property('Discourse.Babble.currentTopicId', 'Discourse.Babble.availableTopics'),

@observes('Discourse.Babble.currentTopic', 'availableTopics')
multipleTopicsAvailable: function() {
return this.get('availableTopics').length > 0
},
}.property('availableTopics.length'),

@observes('visible')
_visible: function() {
Expand Down

0 comments on commit cb32a53

Please sign in to comment.