diff options
author | 2021-12-24 18:37:45 +0100 | |
---|---|---|
committer | 2021-12-24 18:37:45 +0100 | |
commit | de536064f400f5c8b0f444b7ac74bbb646991424 (patch) | |
tree | c7ad29dc067a04a18ed3abeaf444b9cf071e3f1a /src/components/settings | |
parent | Prevent error swallowing on autoUpdate event (diff) | |
download | ferdium-app-de536064f400f5c8b0f444b7ac74bbb646991424.tar.gz ferdium-app-de536064f400f5c8b0f444b7ac74bbb646991424.tar.zst ferdium-app-de536064f400f5c8b0f444b7ac74bbb646991424.zip |
Apply .update-available badge to settings/updates tabs
Diffstat (limited to 'src/components/settings')
-rw-r--r-- | src/components/settings/navigation/SettingsNavigation.js | 5 | ||||
-rw-r--r-- | src/components/settings/settings/EditSettingsForm.js | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/components/settings/navigation/SettingsNavigation.js b/src/components/settings/navigation/SettingsNavigation.js index e8370d2ef..b58956f51 100644 --- a/src/components/settings/navigation/SettingsNavigation.js +++ b/src/components/settings/navigation/SettingsNavigation.js | |||
@@ -137,6 +137,11 @@ class SettingsNavigation extends Component { | |||
137 | activeClassName="is-active" | 137 | activeClassName="is-active" |
138 | > | 138 | > |
139 | {intl.formatMessage(globalMessages.settings)} | 139 | {intl.formatMessage(globalMessages.settings)} |
140 | {stores.settings.app.automaticUpdates && | ||
141 | (stores.app.updateStatus === stores.app.updateStatusTypes.AVAILABLE || | ||
142 | stores.app.updateStatus === stores.app.updateStatusTypes.DOWNLOADED) && ( | ||
143 | <span className="update-available">•</span> | ||
144 | )} | ||
140 | </Link> | 145 | </Link> |
141 | <Link | 146 | <Link |
142 | to="/settings/support" | 147 | to="/settings/support" |
diff --git a/src/components/settings/settings/EditSettingsForm.js b/src/components/settings/settings/EditSettingsForm.js index 01e609580..3b2fe4af4 100644 --- a/src/components/settings/settings/EditSettingsForm.js +++ b/src/components/settings/settings/EditSettingsForm.js | |||
@@ -378,6 +378,9 @@ class EditSettingsForm extends Component { | |||
378 | }} | 378 | }} |
379 | > | 379 | > |
380 | {intl.formatMessage(messages.headlineUpdates)} | 380 | {intl.formatMessage(messages.headlineUpdates)} |
381 | {automaticUpdates && (updateIsReadyToInstall || isUpdateAvailable) && ( | ||
382 | <span className="update-available">•</span> | ||
383 | )} | ||
381 | </h2> | 384 | </h2> |
382 | </div> | 385 | </div> |
383 | 386 | ||