|
|
@ -51,6 +51,10 @@ export class CreateOrUpdateAccountDialog implements OnDestroy { |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public onCancel() { |
|
|
|
this.dialogRef.close(); |
|
|
|
} |
|
|
|
|
|
|
|
public onSubmit() { |
|
|
|
const account: CreateAccountDto | UpdateAccountDto = { |
|
|
|
balance: this.accountForm.controls['balance'].value, |
|
|
@ -71,10 +75,6 @@ export class CreateOrUpdateAccountDialog implements OnDestroy { |
|
|
|
this.dialogRef.close({ account }); |
|
|
|
} |
|
|
|
|
|
|
|
public onCancel() { |
|
|
|
this.dialogRef.close(); |
|
|
|
} |
|
|
|
|
|
|
|
public ngOnDestroy() { |
|
|
|
this.unsubscribeSubject.next(); |
|
|
|
this.unsubscribeSubject.complete(); |
|
|
|