diff options
Diffstat (limited to 'src/components/settings/services/EditServiceForm.js')
-rw-r--r-- | src/components/settings/services/EditServiceForm.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js index f9afe4c8d..777a95fcf 100644 --- a/src/components/settings/services/EditServiceForm.js +++ b/src/components/settings/services/EditServiceForm.js | |||
@@ -106,6 +106,7 @@ export default @observer class EditServiceForm extends Component { | |||
106 | return null; | 106 | return null; |
107 | }, | 107 | }, |
108 | user: PropTypes.instanceOf(User).isRequired, | 108 | user: PropTypes.instanceOf(User).isRequired, |
109 | userCanManageServices: PropTypes.bool.isRequired, | ||
109 | action: PropTypes.string.isRequired, | 110 | action: PropTypes.string.isRequired, |
110 | form: PropTypes.instanceOf(Form).isRequired, | 111 | form: PropTypes.instanceOf(Form).isRequired, |
111 | onSubmit: PropTypes.func.isRequired, | 112 | onSubmit: PropTypes.func.isRequired, |
@@ -168,6 +169,7 @@ export default @observer class EditServiceForm extends Component { | |||
168 | service, | 169 | service, |
169 | action, | 170 | action, |
170 | user, | 171 | user, |
172 | userCanManageServices, | ||
171 | form, | 173 | form, |
172 | isSaving, | 174 | isSaving, |
173 | isDeleting, | 175 | isDeleting, |
@@ -326,7 +328,7 @@ export default @observer class EditServiceForm extends Component { | |||
326 | </div> | 328 | </div> |
327 | <div className="settings__controls"> | 329 | <div className="settings__controls"> |
328 | {/* Delete Button */} | 330 | {/* Delete Button */} |
329 | {action === 'edit' && deleteButton} | 331 | {action === 'edit' && userCanManageServices && deleteButton} |
330 | 332 | ||
331 | {/* Save Button */} | 333 | {/* Save Button */} |
332 | {isSaving || isValidatingCustomUrl ? ( | 334 | {isSaving || isValidatingCustomUrl ? ( |