Skip to content

Commit

Permalink
Hide sub button on unpartnered channels. Fix #142
Browse files Browse the repository at this point in the history
  • Loading branch information
bastimeyer committed Oct 2, 2015
1 parent 188f7a3 commit 3db4c18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/components/SubscribeChannelComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ define([
) {

var get = Ember.get;
var and = Ember.computed.and;
var alias = Ember.computed.alias;

return FormButtonComponent.extend( TwitchInteractButtonMixin, {
Expand All @@ -25,6 +26,8 @@ define([
// use the channel's display_name
name : alias( "channel.display_name" ),

isVisible: and( "isValid", "model.partner" ),

action: "subscribe",
openBrowser: "openBrowser",

Expand Down

0 comments on commit 3db4c18

Please sign in to comment.