Browse Source

feat(client): implement input signal

pull/6893/head
KenTandrian 1 week ago
parent
commit
ca9dd440ea
  1. 2
      apps/client/src/app/components/admin-tag/admin-tag.component.html
  2. 4
      apps/client/src/app/components/admin-tag/admin-tag.component.ts

2
apps/client/src/app/components/admin-tag/admin-tag.component.html

@ -47,7 +47,7 @@
<td *matCellDef="let element" class="px-1 text-right" mat-cell> <td *matCellDef="let element" class="px-1 text-right" mat-cell>
<gf-value <gf-value
class="d-inline-block justify-content-end" class="d-inline-block justify-content-end"
[locale]="locale" [locale]="locale()"
[value]="element.activityCount" [value]="element.activityCount"
/> />
</td> </td>

4
apps/client/src/app/components/admin-tag/admin-tag.component.ts

@ -13,7 +13,7 @@ import {
computed, computed,
DestroyRef, DestroyRef,
inject, inject,
Input, input,
OnInit, OnInit,
viewChild viewChild
} from '@angular/core'; } from '@angular/core';
@ -54,7 +54,7 @@ import { CreateOrUpdateTagDialogParams } from './create-or-update-tag-dialog/int
templateUrl: './admin-tag.component.html' templateUrl: './admin-tag.component.html'
}) })
export class GfAdminTagComponent implements OnInit { export class GfAdminTagComponent implements OnInit {
@Input() locale = getLocale(); public readonly locale = input(getLocale());
public dataSource = new MatTableDataSource<Tag>(); public dataSource = new MatTableDataSource<Tag>();
public displayedColumns = ['name', 'userId', 'activities', 'actions']; public displayedColumns = ['name', 'userId', 'activities', 'actions'];

Loading…
Cancel
Save