diff --git a/src/components/settings/services/EditServiceForm.js b/src/components/settings/services/EditServiceForm.js index a7d296460..f689dd5c4 100644 --- a/src/components/settings/services/EditServiceForm.js +++ b/src/components/settings/services/EditServiceForm.js @@ -47,6 +47,10 @@ const messages = defineMessages({ id: 'settings.service.form.tabOnPremise', defaultMessage: '!!!Self hosted ⭐️', }, + useHostedService: { + id: 'settings.service.form.useHostedService', + defaultMessage: '!!!Use the hosted {name} service.', + }, customUrlValidationError: { id: 'settings.service.form.customUrlValidationError', defaultMessage: '!!!Could not validate custom {name} server.', @@ -108,7 +112,6 @@ export default class EditServiceForm extends Component { this.props.form.submit({ onSuccess: async (form) => { const values = form.values(); - let isValid = true; if (recipe.validateUrl && values.customUrl) { @@ -166,6 +169,13 @@ export default class EditServiceForm extends Component { /> ); + let activeTabIndex = 0; + if (recipe.hasHostedOption && service.team) { + activeTabIndex = 1; + } else if (recipe.hasHostedOption && service.customUrl) { + activeTabIndex = 2; + } + return (