summaryrefslogtreecommitdiffstats
path: root/src/components/settings/settings/EditSettingsForm.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/settings/settings/EditSettingsForm.jsx')
-rw-r--r--src/components/settings/settings/EditSettingsForm.jsx31
1 files changed, 26 insertions, 5 deletions
diff --git a/src/components/settings/settings/EditSettingsForm.jsx b/src/components/settings/settings/EditSettingsForm.jsx
index cb1d261f8..a10d89570 100644
--- a/src/components/settings/settings/EditSettingsForm.jsx
+++ b/src/components/settings/settings/EditSettingsForm.jsx
@@ -15,6 +15,13 @@ import Input from '../../ui/Input';
15import ColorPickerInput from '../../ui/ColorPickerInput'; 15import ColorPickerInput from '../../ui/ColorPickerInput';
16import Infobox from '../../ui/Infobox'; 16import Infobox from '../../ui/Infobox';
17import { H1, H2, H3, H5 } from '../../ui/headline'; 17import { H1, H2, H3, H5 } from '../../ui/headline';
18import {
19 ferdiumVersion,
20 userDataPath,
21 userDataRecipesPath,
22} from '../../../environment-remote';
23
24import { updateVersionParse } from '../../../helpers/update-helpers';
18 25
19import { 26import {
20 DEFAULT_ACCENT_COLOR, 27 DEFAULT_ACCENT_COLOR,
@@ -25,11 +32,6 @@ import {
25 SPLIT_COLUMNS_MIN, 32 SPLIT_COLUMNS_MIN,
26} from '../../../config'; 33} from '../../../config';
27import { isMac, isWindows, lockFerdiumShortcutKey } from '../../../environment'; 34import { isMac, isWindows, lockFerdiumShortcutKey } from '../../../environment';
28import {
29 ferdiumVersion,
30 userDataPath,
31 userDataRecipesPath,
32} from '../../../environment-remote';
33import { openExternalUrl, openPath } from '../../../helpers/url-helpers'; 35import { openExternalUrl, openPath } from '../../../helpers/url-helpers';
34import globalMessages from '../../../i18n/globalMessages'; 36import globalMessages from '../../../i18n/globalMessages';
35import Icon from '../../ui/icon'; 37import Icon from '../../ui/icon';
@@ -213,6 +215,10 @@ const messages = defineMessages({
213 id: 'settings.app.buttonInstallUpdate', 215 id: 'settings.app.buttonInstallUpdate',
214 defaultMessage: 'Restart & install update', 216 defaultMessage: 'Restart & install update',
215 }, 217 },
218 buttonShowChangelog: {
219 id: 'settings.app.buttonShowChangelog',
220 defaultMessage: 'Show changelog',
221 },
216 updateStatusSearching: { 222 updateStatusSearching: {
217 id: 'settings.app.updateStatusSearching', 223 id: 'settings.app.updateStatusSearching',
218 defaultMessage: 'Searching for updates...', 224 defaultMessage: 'Searching for updates...',
@@ -328,6 +334,7 @@ class EditSettingsForm extends Component {
328 checkForUpdates, 334 checkForUpdates,
329 installUpdate, 335 installUpdate,
330 form, 336 form,
337 updateVersion,
331 isCheckingForUpdates, 338 isCheckingForUpdates,
332 isAdaptableDarkModeEnabled, 339 isAdaptableDarkModeEnabled,
333 isUseGrayscaleServicesEnabled, 340 isUseGrayscaleServicesEnabled,
@@ -1002,6 +1009,20 @@ class EditSettingsForm extends Component {
1002 loaded={!isCheckingForUpdates || !isUpdateAvailable} 1009 loaded={!isCheckingForUpdates || !isUpdateAvailable}
1003 /> 1010 />
1004 )} 1011 )}
1012 {(isUpdateAvailable || updateIsReadyToInstall) && (
1013 <Button
1014 className="settings__updates__changelog-button"
1015 label={intl.formatMessage(
1016 messages.buttonShowChangelog,
1017 )}
1018 onClick={() => {
1019 window.location.href = `#/releasenotes${updateVersionParse(
1020 updateVersion,
1021 )}`;
1022 }}
1023 />
1024 )}
1025 <br />
1005 <br /> 1026 <br />
1006 </div> 1027 </div>
1007 <p> 1028 <p>