diff options
Diffstat (limited to 'src/components/settings/services/EditServiceForm.js')
-rw-r--r-- | src/components/settings/services/EditServiceForm.js | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js index b5300f605..4458c4c5a 100644 --- a/src/components/settings/services/EditServiceForm.js +++ b/src/components/settings/services/EditServiceForm.js | |||
@@ -71,14 +71,6 @@ const messages = defineMessages({ | |||
71 | id: 'settings.service.form.isMutedInfo', | 71 | id: 'settings.service.form.isMutedInfo', |
72 | defaultMessage: '!!!When disabled, all notification sounds and audio playback are muted', | 72 | defaultMessage: '!!!When disabled, all notification sounds and audio playback are muted', |
73 | }, | 73 | }, |
74 | buttonClearCache: { | ||
75 | id: 'settings.service.form.buttonClearCache', | ||
76 | defaultMessage: '!!!Clear cache', | ||
77 | }, | ||
78 | buttonClearingCache: { | ||
79 | id: 'settings.service.form.buttonClearingCache', | ||
80 | defaultMessage: '!!!Clearing cache', | ||
81 | }, | ||
82 | headlineNotifications: { | 74 | headlineNotifications: { |
83 | id: 'settings.service.form.headlineNotifications', | 75 | id: 'settings.service.form.headlineNotifications', |
84 | defaultMessage: '!!!Notifications', | 76 | defaultMessage: '!!!Notifications', |
@@ -110,10 +102,8 @@ export default class EditServiceForm extends Component { | |||
110 | form: PropTypes.instanceOf(Form).isRequired, | 102 | form: PropTypes.instanceOf(Form).isRequired, |
111 | onSubmit: PropTypes.func.isRequired, | 103 | onSubmit: PropTypes.func.isRequired, |
112 | onDelete: PropTypes.func.isRequired, | 104 | onDelete: PropTypes.func.isRequired, |
113 | onClearCache: PropTypes.func.isRequired, | ||
114 | isSaving: PropTypes.bool.isRequired, | 105 | isSaving: PropTypes.bool.isRequired, |
115 | isDeleting: PropTypes.bool.isRequired, | 106 | isDeleting: PropTypes.bool.isRequired, |
116 | isClearingCache: PropTypes.bool.isRequired, | ||
117 | }; | 107 | }; |
118 | 108 | ||
119 | static defaultProps = { | 109 | static defaultProps = { |
@@ -168,9 +158,7 @@ export default class EditServiceForm extends Component { | |||
168 | form, | 158 | form, |
169 | isSaving, | 159 | isSaving, |
170 | isDeleting, | 160 | isDeleting, |
171 | isClearingCache, | ||
172 | onDelete, | 161 | onDelete, |
173 | onClearCache, | ||
174 | } = this.props; | 162 | } = this.props; |
175 | const { intl } = this.context; | 163 | const { intl } = this.context; |
176 | 164 | ||
@@ -193,23 +181,6 @@ export default class EditServiceForm extends Component { | |||
193 | /> | 181 | /> |
194 | ); | 182 | ); |
195 | 183 | ||
196 | const clearCacheButton = isClearingCache ? ( | ||
197 | <Button | ||
198 | buttonType="secondary" | ||
199 | className="settings__clear-cache-button" | ||
200 | loaded={false} | ||
201 | label={intl.formatMessage(messages.buttonClearingCache)} | ||
202 | disabled | ||
203 | /> | ||
204 | ) : ( | ||
205 | <Button | ||
206 | buttonType="warning" | ||
207 | className="settings__clear-cache-button" | ||
208 | label={intl.formatMessage(messages.buttonClearCache)} | ||
209 | onClick={onClearCache} | ||
210 | /> | ||
211 | ); | ||
212 | |||
213 | let activeTabIndex = 0; | 184 | let activeTabIndex = 0; |
214 | if (recipe.hasHostedOption && service.team) { | 185 | if (recipe.hasHostedOption && service.team) { |
215 | activeTabIndex = 1; | 186 | activeTabIndex = 1; |
@@ -316,7 +287,6 @@ export default class EditServiceForm extends Component { | |||
316 | <div className="settings__settings-group"> | 287 | <div className="settings__settings-group"> |
317 | <h3>{intl.formatMessage(messages.headlineGeneral)}</h3> | 288 | <h3>{intl.formatMessage(messages.headlineGeneral)}</h3> |
318 | <Toggle field={form.$('isEnabled')} /> | 289 | <Toggle field={form.$('isEnabled')} /> |
319 | {clearCacheButton} | ||
320 | </div> | 290 | </div> |
321 | </div> | 291 | </div> |
322 | {recipe.message && ( | 292 | {recipe.message && ( |