aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/auth/AuthLayout.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/auth/AuthLayout.jsx')
-rw-r--r--src/components/auth/AuthLayout.jsx5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/auth/AuthLayout.jsx b/src/components/auth/AuthLayout.jsx
index 8a88cedb1..5c87c3080 100644
--- a/src/components/auth/AuthLayout.jsx
+++ b/src/components/auth/AuthLayout.jsx
@@ -14,6 +14,7 @@ import {
14 oneOrManyChildElements, 14 oneOrManyChildElements,
15 globalError as globalErrorPropType, 15 globalError as globalErrorPropType,
16} from '../../prop-types'; 16} from '../../prop-types';
17import { updateVersionParse } from '../../helpers/update-helpers';
17import globalMessages from '../../i18n/globalMessages'; 18import globalMessages from '../../i18n/globalMessages';
18 19
19import { isWindows } from '../../environment'; 20import { isWindows } from '../../environment';
@@ -34,6 +35,7 @@ class AuthLayout extends Component {
34 isFullScreen: PropTypes.bool.isRequired, 35 isFullScreen: PropTypes.bool.isRequired,
35 installAppUpdate: PropTypes.func.isRequired, 36 installAppUpdate: PropTypes.func.isRequired,
36 appUpdateIsDownloaded: PropTypes.bool.isRequired, 37 appUpdateIsDownloaded: PropTypes.bool.isRequired,
38 updateVersion: PropTypes.string.isRequired,
37 }; 39 };
38 40
39 constructor() { 41 constructor() {
@@ -55,10 +57,10 @@ class AuthLayout extends Component {
55 isFullScreen, 57 isFullScreen,
56 installAppUpdate, 58 installAppUpdate,
57 appUpdateIsDownloaded, 59 appUpdateIsDownloaded,
60 updateVersion,
58 } = this.props; 61 } = this.props;
59 62
60 const { intl } = this.props; 63 const { intl } = this.props;
61
62 let serverNameParse = serverName(); 64 let serverNameParse = serverName();
63 serverNameParse = 65 serverNameParse =
64 serverNameParse === 'Custom' ? 'your Custom Server' : serverNameParse; 66 serverNameParse === 'Custom' ? 'your Custom Server' : serverNameParse;
@@ -81,6 +83,7 @@ class AuthLayout extends Component {
81 {appUpdateIsDownloaded && this.state.shouldShowAppUpdateInfoBar && ( 83 {appUpdateIsDownloaded && this.state.shouldShowAppUpdateInfoBar && (
82 <AppUpdateInfoBar 84 <AppUpdateInfoBar
83 onInstallUpdate={installAppUpdate} 85 onInstallUpdate={installAppUpdate}
86 updateVersionParsed={updateVersionParse(updateVersion)}
84 onHide={() => { 87 onHide={() => {
85 this.setState({ shouldShowAppUpdateInfoBar: false }); 88 this.setState({ shouldShowAppUpdateInfoBar: false });
86 }} 89 }}