Browse Source

Reorder

pull/2408/head
Thomas 2 years ago
parent
commit
c1c6324f9b
  1. 8
      apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts

8
apps/client/src/app/pages/accounts/create-or-update-account-dialog/create-or-update-account-dialog.component.ts

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

Loading…
Cancel
Save