diff options
author | kytwb <kytwb@pm.me> | 2022-01-05 18:18:55 +0100 |
---|---|---|
committer | kytwb <kytwb@pm.me> | 2022-01-05 18:18:55 +0100 |
commit | 7bffdc7f81dd365858003764beb3a921e6e043e7 (patch) | |
tree | 75c20658e95cb5d5c3e8a1c8cabb2b04ab3cab73 /src/components/layout/Sidebar.js | |
parent | Replace hard-coded popular services in internal server (diff) | |
download | ferdium-app-7bffdc7f81dd365858003764beb3a921e6e043e7.tar.gz ferdium-app-7bffdc7f81dd365858003764beb3a921e6e043e7.tar.zst ferdium-app-7bffdc7f81dd365858003764beb3a921e6e043e7.zip |
Link showServicesUpdatedInfoBar to automaticUpdates
Diffstat (limited to 'src/components/layout/Sidebar.js')
-rw-r--r-- | src/components/layout/Sidebar.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/layout/Sidebar.js b/src/components/layout/Sidebar.js index 1cbdcfe46..3e24c9230 100644 --- a/src/components/layout/Sidebar.js +++ b/src/components/layout/Sidebar.js | |||
@@ -74,6 +74,7 @@ class Sidebar extends Component { | |||
74 | toggleNotifications: PropTypes.func.isRequired, | 74 | toggleNotifications: PropTypes.func.isRequired, |
75 | toggleAudio: PropTypes.func.isRequired, | 75 | toggleAudio: PropTypes.func.isRequired, |
76 | toggleDarkMode: PropTypes.func.isRequired, | 76 | toggleDarkMode: PropTypes.func.isRequired, |
77 | showServicesUpdatedInfoBar: PropTypes.bool.isRequired, | ||
77 | showMessageBadgeWhenMutedSetting: PropTypes.bool.isRequired, | 78 | showMessageBadgeWhenMutedSetting: PropTypes.bool.isRequired, |
78 | showServiceNameSetting: PropTypes.bool.isRequired, | 79 | showServiceNameSetting: PropTypes.bool.isRequired, |
79 | showMessageBadgesEvenWhenMuted: PropTypes.bool.isRequired, | 80 | showMessageBadgesEvenWhenMuted: PropTypes.bool.isRequired, |
@@ -234,10 +235,10 @@ class Sidebar extends Component { | |||
234 | > | 235 | > |
235 | <Icon icon={mdiCog} size={1.5} /> | 236 | <Icon icon={mdiCog} size={1.5} /> |
236 | { | 237 | { |
237 | (this.props.stores.settings.app.automaticUpdates && | 238 | this.props.stores.settings.app.automaticUpdates && |
238 | (this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.AVAILABLE || | 239 | (this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.AVAILABLE || |
239 | this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.DOWNLOADED) | 240 | this.props.stores.app.updateStatus === this.props.stores.app.updateStatusTypes.DOWNLOADED || |
240 | ) && ( | 241 | this.props.showServicesUpdatedInfoBar) && ( |
241 | <span className="update-available">•</span> | 242 | <span className="update-available">•</span> |
242 | ) | 243 | ) |
243 | } | 244 | } |