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

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

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

Loading…
Cancel
Save