From ecf00e124ee387d5f812aa1f75c784390e1e51e7 Mon Sep 17 00:00:00 2001 From: Andria Capai Date: Tue, 11 Apr 2023 16:51:52 +0200 Subject: [PATCH] fix: tooltip and label inside datatable-component Add a childLabel inside interface objObs.ts in order to use this tooltip inside datatable-component --- .../monitoring-datatable-g.component.html | 4 ++-- frontend/app/interfaces/objObs.ts | 1 + frontend/app/services/api-geom.service.ts | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/app/components/monitoring-datatable-g/monitoring-datatable-g.component.html b/frontend/app/components/monitoring-datatable-g/monitoring-datatable-g.component.html index 7db5849a0..956017d99 100644 --- a/frontend/app/components/monitoring-datatable-g/monitoring-datatable-g.component.html +++ b/frontend/app/components/monitoring-datatable-g/monitoring-datatable-g.component.html @@ -52,7 +52,7 @@ @@ -60,7 +60,7 @@ diff --git a/frontend/app/interfaces/objObs.ts b/frontend/app/interfaces/objObs.ts index 927a65127..e836a9cd7 100644 --- a/frontend/app/interfaces/objObs.ts +++ b/frontend/app/interfaces/objObs.ts @@ -11,6 +11,7 @@ export interface IobjObs { label: string; addObjLabel: string; editObjLabel: string; + addChildLabel: string; id: string | null; moduleCode: string; schema: JsonData; diff --git a/frontend/app/services/api-geom.service.ts b/frontend/app/services/api-geom.service.ts index 47fbdd4ae..9db1c29a1 100644 --- a/frontend/app/services/api-geom.service.ts +++ b/frontend/app/services/api-geom.service.ts @@ -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: {}, @@ -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: {},