diff --git a/src/accounts/account.dataSource.ts b/src/accounts/account.dataSource.ts index 227d79b..bb5cabf 100644 --- a/src/accounts/account.dataSource.ts +++ b/src/accounts/account.dataSource.ts @@ -1,3 +1,5 @@ +// vim: set tw=80 ts=2 sw=2 sts=2: + import { Injectable } from '@angular/core'; import { DataSource } from '@angular/cdk/collections'; import { Observable } from 'rxjs/Rx'; diff --git a/src/accounts/account.module.ts b/src/accounts/account.module.ts index d911003..a0008f4 100644 --- a/src/accounts/account.module.ts +++ b/src/accounts/account.module.ts @@ -25,7 +25,6 @@ import { AccountDataSource } from './account.dataSource'; import { AccountDeleteModalComponent } from './accountDeleteModal.component'; import { AccountEditModalComponent } from './accountEditModal.component'; import { AccountFormComponent } from './accountForm.component'; -import { AccountRowComponent } from './accountRow.component'; import { DailyBalanceService } from './dailyBalance.service'; import { AccountListState } from './account.states' @@ -45,7 +44,7 @@ import { AccountListState } from './account.states' MdTableModule, NgLoggerModule, ToastrModule, - NgbModule + NgbModule, ], providers: [ AccountService, @@ -58,7 +57,6 @@ import { AccountListState } from './account.states' AccountDeleteModalComponent, AccountEditModalComponent, AccountFormComponent, - AccountRowComponent ], entryComponents: [ AccountListComponent, diff --git a/src/accounts/accountDeleteModal.component.ts b/src/accounts/accountDeleteModal.component.ts index 0f375fa..f8a4bfc 100644 --- a/src/accounts/accountDeleteModal.component.ts +++ b/src/accounts/accountDeleteModal.component.ts @@ -1,53 +1,30 @@ // vim: set tw=80 ts=2 sw=2 sts=2: -import { Component, Input } from '@angular/core'; - -import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; - -import { Account } from './account'; +import { Component, Inject } from '@angular/core'; +import { MD_DIALOG_DATA } from '@angular/material'; @Component({ selector: 'account-delete-modal', template: ` -
- Do you really want to delete account #{{ account.id }} with name:
- {{ account.name }}
-