selection refactor caused wrench to show up in topic list for non-admins

This commit is contained in:
Sam 2015-01-31 17:16:08 +11:00
parent 8b95511816
commit f4609fd6ae
1 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ export default Discourse.View.extend(StringBuffer, {
], ],
actions: { actions: {
select: function(){ select: function(){
this.set('controller.selected', this); this.set('controller.selectedRow', this);
}, },
toggleBookmark: function(){ toggleBookmark: function(){
@ -24,8 +24,8 @@ export default Discourse.View.extend(StringBuffer, {
}, },
selected: function(){ selected: function(){
return this.get('controller.selected')===this; return this.get('controller.selectedRow')===this;
}.property('controller.selected'), }.property('controller.selectedRow'),
unboundClassNames: function(){ unboundClassNames: function(){
var classes = []; var classes = [];