improvement: fix backend login buttons not showing login progress (#1658)

This commit is contained in:
Caleb 2018-08-27 10:25:32 -06:00 committed by Shawn Erquhart
parent a9666aadd4
commit bc5b155cde
2 changed files with 4 additions and 0 deletions

View File

@ -103,6 +103,7 @@ class App extends React.Component {
onLogin: this.handleLogin.bind(this),
error: auth && auth.get('error'),
isFetching: auth && auth.get('isFetching'),
inProgress: (auth && auth.get('isFetching')) || false,
siteId: this.props.config.getIn(['backend', 'site_domain']),
base_url: this.props.config.getIn(['backend', 'base_url'], null),
authEndpoint: this.props.config.getIn(['backend', 'auth_endpoint']),

View File

@ -22,6 +22,9 @@ const LoginButton = styled.button`
${shadows.dropDeep};
${buttons.default};
${buttons.gray};
&[disabled] {
${buttons.disabled};
}
padding: 0 12px;
margin-top: -40px;