diff options
author | 2020-05-01 00:21:51 +0530 | |
---|---|---|
committer | 2020-04-30 18:51:51 +0000 | |
commit | 362f93476587bfb7196c68cc161d8d18c692709c (patch) | |
tree | c36123615781937f1e5ed19eefe8f533f15e0f86 | |
parent | docs: add tristanplouz as a contributor (#689) (diff) | |
download | ferdium-app-362f93476587bfb7196c68cc161d8d18c692709c.tar.gz ferdium-app-362f93476587bfb7196c68cc161d8d18c692709c.tar.zst ferdium-app-362f93476587bfb7196c68cc161d8d18c692709c.zip |
Restore delete service in sidebar (#692)
-rw-r--r-- | src/components/services/tabs/TabItem.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/components/services/tabs/TabItem.js b/src/components/services/tabs/TabItem.js index ea7a66a62..efa5fa60c 100644 --- a/src/components/services/tabs/TabItem.js +++ b/src/components/services/tabs/TabItem.js | |||
@@ -7,7 +7,7 @@ import classnames from 'classnames'; | |||
7 | import { SortableElement } from 'react-sortable-hoc'; | 7 | import { SortableElement } from 'react-sortable-hoc'; |
8 | 8 | ||
9 | import ServiceModel from '../../../models/Service'; | 9 | import ServiceModel from '../../../models/Service'; |
10 | import { isDevMode, ctrlKey } from '../../../environment'; | 10 | import { ctrlKey } from '../../../environment'; |
11 | 11 | ||
12 | const { Menu } = remote; | 12 | const { Menu } = remote; |
13 | 13 | ||
@@ -119,14 +119,10 @@ class TabItem extends Component { | |||
119 | click: () => (service.isEnabled ? disableService() : enableService()), | 119 | click: () => (service.isEnabled ? disableService() : enableService()), |
120 | }, { | 120 | }, { |
121 | type: 'separator', | 121 | type: 'separator', |
122 | }, { | ||
123 | label: intl.formatMessage(messages.deleteService), | ||
124 | click: () => deleteService(), | ||
122 | }]; | 125 | }]; |
123 | |||
124 | if (isDevMode) { | ||
125 | menuTemplate.push({ | ||
126 | label: intl.formatMessage(messages.deleteService), | ||
127 | click: () => deleteService(), | ||
128 | }); | ||
129 | } | ||
130 | const menu = Menu.buildFromTemplate(menuTemplate); | 126 | const menu = Menu.buildFromTemplate(menuTemplate); |
131 | 127 | ||
132 | let notificationBadge = null; | 128 | let notificationBadge = null; |