Show force refresh token even when not in _test

This commit is contained in:
James Barnsley
2017-04-23 10:32:18 +12:00
parent 7717c95e7b
commit 2e48e0ad64

View File

@ -84,9 +84,9 @@ class SpotifyAuthenticationFrame extends React.Component{
}
renderRefreshButton(){
if( !this.props.authorized || !window._testMode) return null;
if (!this.props.authorized) return null
if( this.props.refreshing_token ){
if (this.props.refreshing_token){
return (
<button disabled>
<FontAwesome name="circle-o-notch" spin />
@ -94,10 +94,10 @@ class SpotifyAuthenticationFrame extends React.Component{
Refreshing...
</button>
);
}else{
} else {
return (
<button onClick={() => this.props.spotifyActions.refreshingToken()}>Refresh token</button>
);
<button onClick={() => this.props.spotifyActions.refreshingToken()}>Force token refresh</button>
)
}
}