Skip to content

Commit

Permalink
Merge pull request #1 from Herteby/patch-2
Browse files Browse the repository at this point in the history
Also hide the "bypass firewall" button in the UI
  • Loading branch information
Herteby authored Nov 30, 2017
2 parents 8ef1ab8 + 9809750 commit 470e705
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ui/Live.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,13 +59,14 @@ class Live extends React.Component {
? <span className="logged-in">Logged in as: {user.emails[0].address}</span>
: <span className="logged-in">Not logged in</span>
}

{!Meteor.isProduction &&
<span className="check-user">
<input type="checkbox" onChange={this.onCheckForUser.bind(this)} />
<span>
Bypass exposure firewall
</span>
</span>
}}

<button onClick={this.onDocsToggle.bind(this)} style={{ float: 'right', marginRight: 20 }}>
{this.state.showDocs ? 'Hide' : 'Show'} Docs
Expand Down Expand Up @@ -178,4 +179,4 @@ export default createContainer(() => {
return {
user: Meteor.user ? Meteor.user() : null
}
}, Live)
}, Live)

0 comments on commit 470e705

Please sign in to comment.