diff options
| author | Oskar Nyberg <oskar@mullvad.net> | 2021-07-06 10:36:18 +0200 |
|---|---|---|
| committer | Oskar Nyberg <oskar@mullvad.net> | 2021-07-06 10:36:18 +0200 |
| commit | 3c48b1c8da17d30199544c4fd221c4ea65d922d8 (patch) | |
| tree | b70aa9f4f75e137c13086bdab4d6f1912206b5ca /gui | |
| parent | 53b41c5c5b49bb29f43f801de66f8a3e1ffd47d1 (diff) | |
| parent | 2930fc358384f737544b281b96f4f78076b21636 (diff) | |
| download | mullvadvpn-3c48b1c8da17d30199544c4fd221c4ea65d922d8.tar.xz mullvadvpn-3c48b1c8da17d30199544c4fd221c4ea65d922d8.zip | |
Merge branch 'make-footer-and-account-history-always-visible'
Diffstat (limited to 'gui')
| -rw-r--r-- | gui/src/renderer/components/Login.tsx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/gui/src/renderer/components/Login.tsx b/gui/src/renderer/components/Login.tsx index 29923d7d0f..4198bcb9dd 100644 --- a/gui/src/renderer/components/Login.tsx +++ b/gui/src/renderer/components/Login.tsx @@ -82,7 +82,7 @@ export default class Login extends React.Component<IProps, IState> { } public render() { - const showFooter = this.shouldShowFooter(); + const showFooter = this.allowInteraction(); return ( <Layout> @@ -208,16 +208,7 @@ export default class Login extends React.Component<IProps, IState> { } private shouldShowAccountHistory() { - return ( - this.allowInteraction() && this.state.isActive && this.props.accountHistory !== undefined - ); - } - - private shouldShowFooter() { - return ( - (this.props.loginState.type === 'none' || this.props.loginState.type === 'failed') && - !this.shouldShowAccountHistory() - ); + return this.allowInteraction() && this.props.accountHistory !== undefined; } private onSelectAccountFromHistory = (accountToken: string) => { |
