Rounded buttons-arama

This commit is contained in:
James Barnsley
2017-02-09 21:23:26 +13:00
parent e149afd79a
commit c9e5e28838
4 changed files with 17 additions and 24 deletions

View File

@ -17,7 +17,7 @@ class VersionManager extends React.Component{
renderUpgradeButton(){
if( this.props.pusher.upgrading ){
return (
<button disabled>
<button className="outline" disabled>
<FontAwesome name="circle-o-notch" spin />
&nbsp;
Upgrading
@ -26,14 +26,14 @@ class VersionManager extends React.Component{
}
if( !this.props.pusher.version.is_root ){
return <button className="secondary" disabled>Not running as root</button>
return <button className="outline" disabled>Not running as root</button>
}
if( this.props.pusher.version.upgrade_available ){
return <button className="secondary" onClick={() => this.props.pusherActions.startUpgrade()}>Upgrade to { this.props.pusher.version.latest }</button>
return <button className="primary" onClick={() => this.props.pusherActions.startUpgrade()}>Upgrade to { this.props.pusher.version.latest }</button>
}
return <button className="secondary" disabled>No updates available</button>
return <button className="outline" disabled>No updates available</button>
}
render(){