Bumped the version to 7
Fixed double exception being thrown Currency pipe broke the accounts pipe
This commit is contained in:
@ -87,8 +87,8 @@
|
||||
</ng-container>
|
||||
|
||||
<mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
|
||||
<mat-row *matRowDef="let row; columns: displayedColumns;" [ngClass]="getRowClass(row.id, row.posted)"
|
||||
(click)="selectRow(row.id)"></mat-row>
|
||||
<mat-row *matRowDef="let row; columns: displayedColumns;" [class.selected]="selectedRowId === row.id"
|
||||
[class.unposted]="!row.posted && selectedRowId !== row.id" (click)="selectRow(row.id)"></mat-row>
|
||||
<mat-footer-row *matFooterRowDef="displayedColumns"></mat-footer-row>
|
||||
</mat-table>
|
||||
|
||||
|
||||
@ -104,16 +104,6 @@ export class LedgerComponent implements OnInit, AfterViewInit {
|
||||
this.selectedRowId = id;
|
||||
}
|
||||
|
||||
getRowClass(id: string, posted: boolean): string {
|
||||
if (this.selectedRowId === id) {
|
||||
return 'selected';
|
||||
} else if (!posted) {
|
||||
return 'unposted';
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
||||
show() {
|
||||
const info = this.getInfo();
|
||||
this.router.navigate(['ledger', info.account.id], {
|
||||
|
||||
Reference in New Issue
Block a user