Skip to content

Commit

Permalink
Revert "CB-5061. remove mandatory parameters for database form (#2650)…
Browse files Browse the repository at this point in the history
…" (#2661)

This reverts commit 15e5574.
  • Loading branch information
alexander-skoblikov committed May 24, 2024
1 parent c60d513 commit 407259b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export const ParametersForm = observer<Props>(function ParametersForm({ config,
<Container gap>
{!embedded && (
<Container wrap gap>
<InputField type="text" name="host" state={config} disabled={disabled} readOnly={readOnly || !originLocal} small>
<InputField type="text" name="host" state={config} disabled={disabled} readOnly={readOnly || !originLocal} small required>
{translate('customConnection_custom_host')}
</InputField>
<InputField type="number" name="port" state={config} disabled={disabled} readOnly={readOnly || !originLocal} tiny>
Expand All @@ -38,7 +38,7 @@ export const ParametersForm = observer<Props>(function ParametersForm({ config,
{translate('customConnection_custom_database')}
</InputField>
{requiresServerName && (
<InputField type="text" name="serverName" state={config} disabled={disabled} readOnly={readOnly}>
<InputField type="text" name="serverName" state={config} disabled={disabled} readOnly={readOnly} required>
{translate('customConnection_custom_server_name')}
</InputField>
)}
Expand Down

0 comments on commit 407259b

Please sign in to comment.