Browse Source

fix(lib): change to protected methods

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

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

@ -3,7 +3,7 @@
<button <button
class="align-items-center d-flex" class="align-items-center d-flex"
mat-stroked-button mat-stroked-button
[disabled]="dataSource()?.data.length < 2" [disabled]="dataSource?.data.length < 2"
(click)="onTransferBalance()" (click)="onTransferBalance()"
> >
<ion-icon class="mr-2" name="arrow-redo-outline" /> <ion-icon class="mr-2" name="arrow-redo-outline" />
@ -19,7 +19,7 @@
matSort matSort
matSortActive="name" matSortActive="name"
matSortDirection="asc" matSortDirection="asc"
[dataSource]="dataSource()" [dataSource]="dataSource"
> >
<ng-container matColumnDef="status"> <ng-container matColumnDef="status">
<th <th

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

@ -142,7 +142,7 @@ export class GfAccountsTableComponent {
}); });
} }
public onDeleteAccount(aId: string) { protected onDeleteAccount(aId: string) {
this.notificationService.confirm({ this.notificationService.confirm({
confirmFn: () => { confirmFn: () => {
this.accountDeleted.emit(aId); this.accountDeleted.emit(aId);
@ -152,7 +152,7 @@ export class GfAccountsTableComponent {
}); });
} }
public onOpenAccountDetailDialog(accountId: string) { protected onOpenAccountDetailDialog(accountId: string) {
if (this.hasPermissionToOpenDetails) { if (this.hasPermissionToOpenDetails) {
this.router.navigate([], { this.router.navigate([], {
queryParams: { accountId, accountDetailDialog: true } queryParams: { accountId, accountDetailDialog: true }
@ -160,17 +160,17 @@ export class GfAccountsTableComponent {
} }
} }
public onOpenComment(aComment: string) { protected onOpenComment(aComment: string) {
this.notificationService.alert({ this.notificationService.alert({
title: aComment title: aComment
}); });
} }
public onTransferBalance() { protected onTransferBalance() {
this.transferBalance.emit(); this.transferBalance.emit();
} }
public onUpdateAccount(aAccount: Account) { protected onUpdateAccount(aAccount: Account) {
this.accountToUpdate.emit(aAccount); this.accountToUpdate.emit(aAccount);
} }
} }

Loading…
Cancel
Save