mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
improve(core-connection): CB-319 checkbox onChange => state
CB-319
This commit is contained in:
@@ -53,10 +53,6 @@ export class DBAuthDialogController implements IInitializableController, IDestru
|
||||
this.isDistructed = true;
|
||||
}
|
||||
|
||||
onChange = (property: keyof IDBAuthConfig, value: any) => {
|
||||
this.config[property] = value;
|
||||
};
|
||||
|
||||
login = async () => {
|
||||
if (this.isAuthenticating) {
|
||||
return;
|
||||
|
||||
@@ -99,12 +99,11 @@ export const DatabaseAuthDialog = observer(function DatabaseAuthDialog({
|
||||
<FormGroup>
|
||||
<FieldCheckbox
|
||||
name="saveCredentials"
|
||||
value={connection.connectionInfo?.name || ''}
|
||||
value={connection.connectionInfo?.name || 'DBAuthSaveCredentials'}
|
||||
checkboxLabel={translate('connections_connection_edit_save_credentials')}
|
||||
disabled={controller.isAuthenticating}
|
||||
state={controller.config}
|
||||
mod='surface'
|
||||
checked={controller.config.saveCredentials}
|
||||
onChange={value => controller.onChange('saveCredentials', value)}
|
||||
/>
|
||||
</FormGroup>
|
||||
</FormBoxElement>
|
||||
|
||||
Reference in New Issue
Block a user