Modal related stuff.
This commit is contained in:
parent
28460e10ff
commit
efb0f70f31
@ -67,14 +67,14 @@ export class AccountRowComponent implements OnInit {
|
|||||||
@Input('account-row') account: Account;
|
@Input('account-row') account: Account;
|
||||||
@Output() needsReload: EventEmitter<void> = new EventEmitter<void>();
|
@Output() needsReload: EventEmitter<void> = new EventEmitter<void>();
|
||||||
|
|
||||||
accountBalances: AccountBalances;
|
private accountBalances: AccountBalances;
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private accountService: AccountService,
|
private accountService: AccountService,
|
||||||
private accountBalancesService: AccountBalancesService,
|
private accountBalancesService: AccountBalancesService,
|
||||||
private toastrService: ToastrService,
|
private toastrService: ToastrService,
|
||||||
private logger: Logger,
|
private logger: Logger,
|
||||||
private modal: NgbModal
|
private ngbModal: NgbModal
|
||||||
) {
|
) {
|
||||||
this.logger.log("AccountRowComponent constructor");
|
this.logger.log("AccountRowComponent constructor");
|
||||||
}
|
}
|
||||||
@ -115,9 +115,7 @@ export class AccountRowComponent implements OnInit {
|
|||||||
};
|
};
|
||||||
|
|
||||||
confirmDelete() {
|
confirmDelete() {
|
||||||
const modal = this.modal.open(AccountDeleteModalComponent, {
|
const modal = this.ngbModal.open(AccountDeleteModalComponent);
|
||||||
windowClass: 'in'
|
|
||||||
});
|
|
||||||
|
|
||||||
modal.componentInstance.account = this.account;
|
modal.componentInstance.account = this.account;
|
||||||
|
|
||||||
@ -149,9 +147,7 @@ export class AccountRowComponent implements OnInit {
|
|||||||
* Open the popup to modify the account, save it on confirm.
|
* Open the popup to modify the account, save it on confirm.
|
||||||
*/
|
*/
|
||||||
modify() {
|
modify() {
|
||||||
const modal = this.modal.open(AccountEditModalComponent, {
|
const modal = this.ngbModal.open(AccountEditModalComponent);
|
||||||
windowClass: 'in'
|
|
||||||
});
|
|
||||||
|
|
||||||
modal.componentInstance.account = this.account;
|
modal.componentInstance.account = this.account;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user