Browse Source

feat(lib): change totalBalanceInBaseCurrency to signal input

pull/6307/head
Kenrick Tandrian 2 months ago
parent
commit
c784437b0d
  1. 2
      libs/ui/src/lib/accounts-table/accounts-table.component.html
  2. 3
      libs/ui/src/lib/accounts-table/accounts-table.component.ts

2
libs/ui/src/lib/accounts-table/accounts-table.component.html

@ -163,7 +163,7 @@
class="d-inline-block justify-content-end"
[isCurrency]="true"
[locale]="locale()"
[value]="totalBalanceInBaseCurrency"
[value]="totalBalanceInBaseCurrency()"
/>
</td>
</ng-container>

3
libs/ui/src/lib/accounts-table/accounts-table.component.ts

@ -55,7 +55,6 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
templateUrl: './accounts-table.component.html'
})
export class GfAccountsTableComponent {
@Input() totalBalanceInBaseCurrency: number;
@Input() totalValueInBaseCurrency: number;
@Output() accountDeleted = new EventEmitter<string>();
@ -74,6 +73,8 @@ export class GfAccountsTableComponent {
public readonly showFooter = input(true);
public readonly showValue = input(true);
public readonly showValueInBaseCurrency = input(false);
public readonly totalBalanceInBaseCurrency = input<number>();
public readonly sort = viewChild.required(MatSort);
protected readonly dataSource = new MatTableDataSource<Account>([]);

Loading…
Cancel
Save