Skip to content

Commit

Permalink
Fix "become DJ" button text
Browse files Browse the repository at this point in the history
  • Loading branch information
clehner committed Jun 29, 2014
1 parent a0999f4 commit 0a16d0e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion browser/controllers/RoomCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ module.exports = Ractive.extend({
template: require("../templates/room.html"),

data: {
djs: [],
currentTab: null,
currentTrack: null,
activeDJ: null,
Expand All @@ -45,12 +46,16 @@ module.exports = Ractive.extend({
return subtract(this.get('users'), this.get('djs'));
},

isDJ: function() {
return this.get('djs').indexOf(this.get('me')) != -1;
},

isActiveDJ: function() {
return this.get('activeDJ') == this.get('me');
},

joinText: function() {
return this.get('isActiveDJ') ? 'step down' : 'become a dj';
return this.get('isDJ') ? 'step down' : 'become a dj';
},

msgPlaceholder: function() {
Expand Down

0 comments on commit 0a16d0e

Please sign in to comment.