Skip to content

Commit

Permalink
CB-2439 remove save creds options from templates (#2020)
Browse files Browse the repository at this point in the history
  • Loading branch information
devnaumov authored Sep 25, 2023
1 parent 75b293d commit 542217c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ export const Options: TabContainerPanelComponent<IConnectionFormProps> = observe
tiny
/>
</Container>
{credentialsSavingEnabled && (
{credentialsSavingEnabled && !config.template && (
<Container wrap gap>
<FieldCheckbox
id={config.connectionId + 'authNeeded'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export const SSH: TabContainerPanelComponent<Props> = observer(function SSH({ st
</InputField>
{keyAuth && <SSHKeyUploader state={handlerState} saved={keySaved} disabled={disabled || !enabled} readonly={readonly} />}
</Container>
{credentialsSavingEnabled && (
{credentialsSavingEnabled && !formState.config.template && (
<FieldCheckbox
id={SSH_TUNNEL_ID + ' savePassword'}
name="savePassword"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export const SSL: TabContainerPanelComponent<Props> = observer(function SSL({ st
</React.Fragment>
))}

{credentialsSavingEnabled && (
{credentialsSavingEnabled && !formState.config.template && (
<FieldCheckbox
id={handler.id + ' savePassword'}
name="savePassword"
Expand Down

0 comments on commit 542217c

Please sign in to comment.