Browse Source

feat(lib): change totalValueInBaseCurrency to signal input

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

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

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

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

@ -9,7 +9,6 @@ import {
ChangeDetectionStrategy, ChangeDetectionStrategy,
Component, Component,
EventEmitter, EventEmitter,
Input,
Output, Output,
computed, computed,
effect, effect,
@ -55,8 +54,6 @@ import { NgxSkeletonLoaderModule } from 'ngx-skeleton-loader';
templateUrl: './accounts-table.component.html' templateUrl: './accounts-table.component.html'
}) })
export class GfAccountsTableComponent { export class GfAccountsTableComponent {
@Input() totalValueInBaseCurrency: number;
@Output() accountDeleted = new EventEmitter<string>(); @Output() accountDeleted = new EventEmitter<string>();
@Output() accountToUpdate = new EventEmitter<Account>(); @Output() accountToUpdate = new EventEmitter<Account>();
@Output() transferBalance = new EventEmitter<void>(); @Output() transferBalance = new EventEmitter<void>();
@ -74,6 +71,7 @@ export class GfAccountsTableComponent {
public readonly showValue = input(true); public readonly showValue = input(true);
public readonly showValueInBaseCurrency = input(false); public readonly showValueInBaseCurrency = input(false);
public readonly totalBalanceInBaseCurrency = input<number>(); public readonly totalBalanceInBaseCurrency = input<number>();
public readonly totalValueInBaseCurrency = input<number>();
public readonly sort = viewChild.required(MatSort); public readonly sort = viewChild.required(MatSort);

Loading…
Cancel
Save