diff options
author | 2017-11-04 10:24:10 +0100 | |
---|---|---|
committer | 2017-11-04 10:24:10 +0100 | |
commit | f7913ccad5f0c6510983d860ec7f2d58b7d84db9 (patch) | |
tree | 77a9397dbb967b18b7221190abeaecfcdb9dc4e4 /src/components/settings/services/EditServiceForm.js | |
parent | Reset linux shortcuts to Ctrl (diff) | |
parent | fix eslint issue (diff) | |
download | ferdium-app-f7913ccad5f0c6510983d860ec7f2d58b7d84db9.tar.gz ferdium-app-f7913ccad5f0c6510983d860ec7f2d58b7d84db9.tar.zst ferdium-app-f7913ccad5f0c6510983d860ec7f2d58b7d84db9.zip |
Merge pull request #209 from meetfranz/feature/developer-debug-hosted-recipes
Enable recipe developers hosted service debugging
Diffstat (limited to 'src/components/settings/services/EditServiceForm.js')
-rw-r--r-- | src/components/settings/services/EditServiceForm.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js index fac0f6b9a..9b359a78e 100644 --- a/src/components/settings/services/EditServiceForm.js +++ b/src/components/settings/services/EditServiceForm.js | |||
@@ -69,10 +69,6 @@ const messages = defineMessages({ | |||
69 | export default class EditServiceForm extends Component { | 69 | export default class EditServiceForm extends Component { |
70 | static propTypes = { | 70 | static propTypes = { |
71 | recipe: PropTypes.instanceOf(Recipe).isRequired, | 71 | recipe: PropTypes.instanceOf(Recipe).isRequired, |
72 | // service: PropTypes.oneOfType([ | ||
73 | // PropTypes.object, | ||
74 | // PropTypes.instanceOf(Service), | ||
75 | // ]), | ||
76 | service(props, propName) { | 72 | service(props, propName) { |
77 | if (props.action === 'edit' && !(props[propName] instanceof Service)) { | 73 | if (props.action === 'edit' && !(props[propName] instanceof Service)) { |
78 | return new Error(`'${propName}'' is expected to be of type 'Service' | 74 | return new Error(`'${propName}'' is expected to be of type 'Service' |
@@ -207,7 +203,7 @@ export default class EditServiceForm extends Component { | |||
207 | )} | 203 | )} |
208 | {recipe.hasCustomUrl && ( | 204 | {recipe.hasCustomUrl && ( |
209 | <TabItem title={intl.formatMessage(messages.tabOnPremise)}> | 205 | <TabItem title={intl.formatMessage(messages.tabOnPremise)}> |
210 | {user.isPremium ? ( | 206 | {user.isPremium || recipe.author.find(a => a.email === user.email) ? ( |
211 | <div> | 207 | <div> |
212 | <Input field={form.$('customUrl')} /> | 208 | <Input field={form.$('customUrl')} /> |
213 | {form.error === 'url-validation-error' && ( | 209 | {form.error === 'url-validation-error' && ( |