diff options
author | 2021-09-06 01:52:54 +0200 | |
---|---|---|
committer | 2021-09-06 05:22:54 +0530 | |
commit | ad2994d4cd76ca1c85659cc6d803c8211e5dafb0 (patch) | |
tree | 721b963ba58eb5918c5a9163d8e92490fe947dd4 | |
parent | refactor: trying to fix zoom in/out being sticky for the last active service ... (diff) | |
download | ferdium-app-ad2994d4cd76ca1c85659cc6d803c8211e5dafb0.tar.gz ferdium-app-ad2994d4cd76ca1c85659cc6d803c8211e5dafb0.tar.zst ferdium-app-ad2994d4cd76ca1c85659cc6d803c8211e5dafb0.zip |
fix: sidebar context menu not synced when toggling via the context menu (#1871)
fixes #1772
-rw-r--r-- | CHANGELOG.md | 4 | ||||
-rw-r--r-- | src/components/services/tabs/TabItem.js | 4 | ||||
-rw-r--r-- | src/stores/ServicesStore.js | 3 |
3 files changed, 6 insertions, 5 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md index 56d6af379..c899b8e30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md | |||
@@ -1,5 +1,9 @@ | |||
1 | # [v5.6.1-nightly.51](https://github.com/getferdi/ferdi/compare/v5.6.1-nightly.50...v5.6.1-nightly.51) (2021-09-06) | 1 | # [v5.6.1-nightly.51](https://github.com/getferdi/ferdi/compare/v5.6.1-nightly.50...v5.6.1-nightly.51) (2021-09-06) |
2 | 2 | ||
3 | ### Bug Fixes | ||
4 | |||
5 | - Fix sidebar context menu not synced when toggling via the context menu (#1871) 💖 @sad270 | ||
6 | |||
3 | ### Internal | 7 | ### Internal |
4 | 8 | ||
5 | - Remove dependency of recipes requiring `electron` and `electron/remote` modules (#1869 & getferdi/recipes#674) 💖 @vraravam | 9 | - Remove dependency of recipes requiring `electron` and `electron/remote` modules (#1869 & getferdi/recipes#674) 💖 @vraravam |
diff --git a/src/components/services/tabs/TabItem.js b/src/components/services/tabs/TabItem.js index 6ad925670..b24055828 100644 --- a/src/components/services/tabs/TabItem.js +++ b/src/components/services/tabs/TabItem.js | |||
@@ -227,8 +227,8 @@ class TabItem extends Component { | |||
227 | }, | 227 | }, |
228 | { | 228 | { |
229 | label: service.isDarkModeEnabled | 229 | label: service.isDarkModeEnabled |
230 | ? intl.formatMessage(messages.enableDarkMode) | 230 | ? intl.formatMessage(messages.disableDarkMode) |
231 | : intl.formatMessage(messages.disableDarkMode), | 231 | : intl.formatMessage(messages.enableDarkMode), |
232 | click: () => toggleDarkMode(), | 232 | click: () => toggleDarkMode(), |
233 | }, | 233 | }, |
234 | { | 234 | { |
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js index b429c9101..9ee3effaa 100644 --- a/src/stores/ServicesStore.js +++ b/src/stores/ServicesStore.js | |||
@@ -920,7 +920,6 @@ export default class ServicesStore extends Store { | |||
920 | 920 | ||
921 | @action _toggleNotifications({ serviceId }) { | 921 | @action _toggleNotifications({ serviceId }) { |
922 | const service = this.one(serviceId); | 922 | const service = this.one(serviceId); |
923 | service.isNotificationEnabled = !service.isNotificationEnabled; | ||
924 | 923 | ||
925 | this.actions.service.updateService({ | 924 | this.actions.service.updateService({ |
926 | serviceId, | 925 | serviceId, |
@@ -933,7 +932,6 @@ export default class ServicesStore extends Store { | |||
933 | 932 | ||
934 | @action _toggleAudio({ serviceId }) { | 933 | @action _toggleAudio({ serviceId }) { |
935 | const service = this.one(serviceId); | 934 | const service = this.one(serviceId); |
936 | service.isMuted = !service.isMuted; | ||
937 | 935 | ||
938 | this.actions.service.updateService({ | 936 | this.actions.service.updateService({ |
939 | serviceId, | 937 | serviceId, |
@@ -946,7 +944,6 @@ export default class ServicesStore extends Store { | |||
946 | 944 | ||
947 | @action _toggleDarkMode({ serviceId }) { | 945 | @action _toggleDarkMode({ serviceId }) { |
948 | const service = this.one(serviceId); | 946 | const service = this.one(serviceId); |
949 | service.isDarkModeEnabled = !service.isDarkModeEnabled; | ||
950 | 947 | ||
951 | this.actions.service.updateService({ | 948 | this.actions.service.updateService({ |
952 | serviceId, | 949 | serviceId, |