|
|
@ -64,10 +64,7 @@ export class GfTransferBalanceDialogComponent { |
|
|
protected readonly transferBalanceForm: TransferBalanceForm = new FormGroup({ |
|
|
protected readonly transferBalanceForm: TransferBalanceForm = new FormGroup({ |
|
|
balance: new FormControl<number | string | null>('', Validators.required), |
|
|
balance: new FormControl<number | string | null>('', Validators.required), |
|
|
fromAccount: new FormControl<string | null>('', Validators.required), |
|
|
fromAccount: new FormControl<string | null>('', Validators.required), |
|
|
toAccount: new FormControl<string | null>( |
|
|
toAccount: new FormControl<string | null>(null, Validators.required) |
|
|
{ disabled: true, value: null }, |
|
|
|
|
|
Validators.required |
|
|
|
|
|
) |
|
|
|
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
private readonly dialogRef = |
|
|
private readonly dialogRef = |
|
|
@ -88,15 +85,11 @@ export class GfTransferBalanceDialogComponent { |
|
|
|
|
|
|
|
|
const toAccountControl = this.transferBalanceForm.controls.toAccount; |
|
|
const toAccountControl = this.transferBalanceForm.controls.toAccount; |
|
|
|
|
|
|
|
|
if (id) { |
|
|
if (id && toAccountControl.value === id) { |
|
|
if (toAccountControl.value === id) { |
|
|
|
|
|
toAccountControl.setValue(null); |
|
|
toAccountControl.setValue(null); |
|
|
toAccountControl.markAsPristine(); |
|
|
toAccountControl.markAsPristine(); |
|
|
toAccountControl.markAsUntouched(); |
|
|
toAccountControl.markAsUntouched(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
toAccountControl.enable(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
); |
|
|
); |
|
|
} |
|
|
} |
|
|
|