aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/layout/AppLayout.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/layout/AppLayout.js')
-rw-r--r--src/components/layout/AppLayout.js35
1 files changed, 5 insertions, 30 deletions
diff --git a/src/components/layout/AppLayout.js b/src/components/layout/AppLayout.js
index b31c00f54..499bc097a 100644
--- a/src/components/layout/AppLayout.js
+++ b/src/components/layout/AppLayout.js
@@ -16,7 +16,7 @@ import ErrorBoundary from '../util/ErrorBoundary';
16import { isWindows } from '../../environment'; 16import { isWindows } from '../../environment';
17import WorkspaceSwitchingIndicator from '../../features/workspaces/components/WorkspaceSwitchingIndicator'; 17import WorkspaceSwitchingIndicator from '../../features/workspaces/components/WorkspaceSwitchingIndicator';
18import { workspaceStore } from '../../features/workspaces'; 18import { workspaceStore } from '../../features/workspaces';
19import { announcementActions } from '../../features/announcements/actions'; 19import AppUpdateInfoBar from '../AppUpdateInfoBar';
20 20
21function createMarkup(HTMLString) { 21function createMarkup(HTMLString) {
22 return { __html: HTMLString }; 22 return { __html: HTMLString };
@@ -27,22 +27,10 @@ const messages = defineMessages({
27 id: 'infobar.servicesUpdated', 27 id: 'infobar.servicesUpdated',
28 defaultMessage: '!!!Your services have been updated.', 28 defaultMessage: '!!!Your services have been updated.',
29 }, 29 },
30 updateAvailable: {
31 id: 'infobar.updateAvailable',
32 defaultMessage: '!!!A new update for Franz is available.',
33 },
34 buttonReloadServices: { 30 buttonReloadServices: {
35 id: 'infobar.buttonReloadServices', 31 id: 'infobar.buttonReloadServices',
36 defaultMessage: '!!!Reload services', 32 defaultMessage: '!!!Reload services',
37 }, 33 },
38 changelog: {
39 id: 'infobar.buttonChangelog',
40 defaultMessage: '!!!Changelog',
41 },
42 buttonInstallUpdate: {
43 id: 'infobar.buttonInstallUpdate',
44 defaultMessage: '!!!Restart & install update',
45 },
46 requiredRequestsFailed: { 34 requiredRequestsFailed: {
47 id: 'infobar.requiredRequestsFailed', 35 id: 'infobar.requiredRequestsFailed',
48 defaultMessage: '!!!Could not load services and user information', 36 defaultMessage: '!!!Could not load services and user information',
@@ -173,23 +161,10 @@ class AppLayout extends Component {
173 </InfoBar> 161 </InfoBar>
174 )} 162 )}
175 {appUpdateIsDownloaded && ( 163 {appUpdateIsDownloaded && (
176 <InfoBar 164 <AppUpdateInfoBar
177 type="primary" 165 nextAppReleaseVersion={nextAppReleaseVersion}
178 ctaLabel={intl.formatMessage(messages.buttonInstallUpdate)} 166 onInstallUpdate={installAppUpdate}
179 onClick={installAppUpdate} 167 />
180 sticky
181 >
182 <span className="mdi mdi-information" />
183 {intl.formatMessage(messages.updateAvailable)}
184 {' '}
185 <button
186 className="info-bar__inline-button"
187 type="button"
188 onClick={() => announcementActions.show({ targetVersion: nextAppReleaseVersion })}
189 >
190 <u>{intl.formatMessage(messages.changelog)}</u>
191 </button>
192 </InfoBar>
193 )} 168 )}
194 {isDelayAppScreenVisible && (<DelayApp />)} 169 {isDelayAppScreenVisible && (<DelayApp />)}
195 <BasicAuth /> 170 <BasicAuth />