diff options
Diffstat (limited to 'src/components/layout/AppLayout.js')
-rw-r--r-- | src/components/layout/AppLayout.js | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/components/layout/AppLayout.js b/src/components/layout/AppLayout.js index fe43c42d2..3b732e602 100644 --- a/src/components/layout/AppLayout.js +++ b/src/components/layout/AppLayout.js | |||
@@ -81,6 +81,10 @@ class AppLayout extends Component { | |||
81 | hasActivatedTrial: PropTypes.bool.isRequired, | 81 | hasActivatedTrial: PropTypes.bool.isRequired, |
82 | }; | 82 | }; |
83 | 83 | ||
84 | state = { | ||
85 | shouldShowAppUpdateInfoBar: true, | ||
86 | } | ||
87 | |||
84 | static defaultProps = { | 88 | static defaultProps = { |
85 | children: [], | 89 | children: [], |
86 | nextAppReleaseVersion: null, | 90 | nextAppReleaseVersion: null, |
@@ -181,10 +185,13 @@ class AppLayout extends Component { | |||
181 | {intl.formatMessage(messages.servicesUpdated)} | 185 | {intl.formatMessage(messages.servicesUpdated)} |
182 | </InfoBar> | 186 | </InfoBar> |
183 | )} | 187 | )} |
184 | {appUpdateIsDownloaded && ( | 188 | { appUpdateIsDownloaded && this.state.shouldShowAppUpdateInfoBar && ( |
185 | <AppUpdateInfoBar | 189 | <AppUpdateInfoBar |
186 | nextAppReleaseVersion={nextAppReleaseVersion} | 190 | nextAppReleaseVersion={nextAppReleaseVersion} |
187 | onInstallUpdate={installAppUpdate} | 191 | onInstallUpdate={installAppUpdate} |
192 | onHide={() => { | ||
193 | this.setState({ shouldShowAppUpdateInfoBar: false }); | ||
194 | }} | ||
188 | /> | 195 | /> |
189 | )} | 196 | )} |
190 | <BasicAuth /> | 197 | <BasicAuth /> |