diff options
author | 2021-12-15 16:59:53 +0530 | |
---|---|---|
committer | 2021-12-15 17:00:19 +0530 | |
commit | ecac9de1704ab75990eac16bc4aebb17bac774f5 (patch) | |
tree | ce727ae5abd00948ab17b87418437762e220a2b8 /src/components/services/tabs | |
parent | Various appearance fixes (diff) | |
download | ferdium-app-ecac9de1704ab75990eac16bc4aebb17bac774f5.tar.gz ferdium-app-ecac9de1704ab75990eac16bc4aebb17bac774f5.tar.zst ferdium-app-ecac9de1704ab75990eac16bc4aebb17bac774f5.zip |
chore: Enable/disable context menu for services on sidebar
Diffstat (limited to 'src/components/services/tabs')
-rw-r--r-- | src/components/services/tabs/TabItem.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/components/services/tabs/TabItem.js b/src/components/services/tabs/TabItem.js index 8e163bce6..8875a69d0 100644 --- a/src/components/services/tabs/TabItem.js +++ b/src/components/services/tabs/TabItem.js | |||
@@ -236,6 +236,7 @@ class TabItem extends Component { | |||
236 | label: intl.formatMessage(messages.reload), | 236 | label: intl.formatMessage(messages.reload), |
237 | click: reload, | 237 | click: reload, |
238 | accelerator: `${cmdOrCtrlShortcutKey()}+R`, | 238 | accelerator: `${cmdOrCtrlShortcutKey()}+R`, |
239 | enabled: service.isEnabled, | ||
239 | }, | 240 | }, |
240 | { | 241 | { |
241 | label: intl.formatMessage(globalMessages.edit), | 242 | label: intl.formatMessage(globalMessages.edit), |
@@ -253,6 +254,7 @@ class TabItem extends Component { | |||
253 | : intl.formatMessage(messages.enableNotifications), | 254 | : intl.formatMessage(messages.enableNotifications), |
254 | click: () => toggleNotifications(), | 255 | click: () => toggleNotifications(), |
255 | accelerator: `${cmdOrCtrlShortcutKey()}+${altKey()}+N`, | 256 | accelerator: `${cmdOrCtrlShortcutKey()}+${altKey()}+N`, |
257 | enabled: service.isEnabled, | ||
256 | }, | 258 | }, |
257 | { | 259 | { |
258 | label: service.isMuted | 260 | label: service.isMuted |
@@ -260,6 +262,7 @@ class TabItem extends Component { | |||
260 | : intl.formatMessage(messages.disableAudio), | 262 | : intl.formatMessage(messages.disableAudio), |
261 | click: () => toggleAudio(), | 263 | click: () => toggleAudio(), |
262 | accelerator: `${cmdOrCtrlShortcutKey()}+${shiftKey()}+A`, | 264 | accelerator: `${cmdOrCtrlShortcutKey()}+${shiftKey()}+A`, |
265 | enabled: service.isEnabled, | ||
263 | }, | 266 | }, |
264 | { | 267 | { |
265 | label: service.isDarkModeEnabled | 268 | label: service.isDarkModeEnabled |
@@ -267,6 +270,7 @@ class TabItem extends Component { | |||
267 | : intl.formatMessage(messages.enableDarkMode), | 270 | : intl.formatMessage(messages.enableDarkMode), |
268 | click: () => toggleDarkMode(), | 271 | click: () => toggleDarkMode(), |
269 | accelerator: `${shiftKey()}+${altKey()}+D`, | 272 | accelerator: `${shiftKey()}+${altKey()}+D`, |
273 | enabled: service.isEnabled, | ||
270 | }, | 274 | }, |
271 | { | 275 | { |
272 | label: intl.formatMessage( | 276 | label: intl.formatMessage( |