Skip to content

Commit

Permalink
fix: tooltip and label inside datatable-component
Browse files Browse the repository at this point in the history
Add a childLabel inside interface objObs.ts
in order to use this tooltip inside datatable-component
  • Loading branch information
andriacap authored and Maxime Vergez committed Apr 14, 2023
1 parent a4a764b commit ecf00e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@
<a
class="nav-link link cell-link"
(click)="navigateToDetail(row)"
matTooltip="Consulter le groupe de site"
matTooltip="Consulter le {{ objectType.label }}"
>
<i class="fa fa-eye" aria-hidden="true"></i>
</a>
<!-- TODO Action Column : Changer ngIf, click function, matTooltip // voir comment adapter à ce qu'il y avait avant : *ngIf="child0.child0()"" et dans la function `child0.child0().labelArtUndef(true)` -->
<a
class="nav-link link cell-link"
(click)="navigateToAddChildren(null, row.id)"
matTooltip="Ajouter un site "
matTooltip=" {{objectType.addChildLabel}}"
>
<i class="fa fa-plus" aria-hidden="true"></i>
</a>
Expand Down
1 change: 1 addition & 0 deletions frontend/app/interfaces/objObs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export interface IobjObs<ObjDataType> {
label: string;
addObjLabel: string;
editObjLabel: string;
addChildLabel: string;
id: string | null;
moduleCode: string;
schema: JsonData;
Expand Down
2 changes: 2 additions & 0 deletions frontend/app/services/api-geom.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ export class SitesGroupService extends ApiGeomService {
label: 'groupe de site',
addObjLabel: 'Ajouter un nouveau groupe de site',
editObjLabel: 'Editer le groupe de site',
addChildLabel: 'Ajouter un site',
id: null,
moduleCode: 'generic',
schema: {},
Expand Down Expand Up @@ -184,6 +185,7 @@ export class SitesService extends ApiGeomService {
label: 'site',
addObjLabel: 'Ajouter un nouveau site',
editObjLabel: 'Editer le site',
addChildLabel: 'Ajouter une visite',
id: null,
moduleCode: 'generic',
schema: {},
Expand Down

0 comments on commit ecf00e1

Please sign in to comment.