From 844fd23bb4036acacb7334dcecdbc6e0150e017f Mon Sep 17 00:00:00 2001 From: apuente Date: Fri, 21 Jun 2024 12:41:26 +0200 Subject: [PATCH] Groups type fix organizational units --- .../src/app/components/groups/groups.component.html | 9 ++++++--- .../src/app/components/groups/groups.component.ts | 2 -- ogWebconsole/src/app/components/groups/model.ts | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/ogWebconsole/src/app/components/groups/groups.component.html b/ogWebconsole/src/app/components/groups/groups.component.html index b61ca4a..d468caf 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.html +++ b/ogWebconsole/src/app/components/groups/groups.component.html @@ -9,13 +9,16 @@ Unidad organizativa - - + apartment {{ unidad.nombre }} - + + edit + delete + diff --git a/ogWebconsole/src/app/components/groups/groups.component.ts b/ogWebconsole/src/app/components/groups/groups.component.ts index c379d78..54b4fae 100644 --- a/ogWebconsole/src/app/components/groups/groups.component.ts +++ b/ogWebconsole/src/app/components/groups/groups.component.ts @@ -40,10 +40,8 @@ export class GroupsComponent implements OnInit { loadChildrenAndClients(uuid: string): void { this.dataService.getChildren(uuid).subscribe( childrenData => { - console.log('Children data:', childrenData); // Depuración this.dataService.getClients(uuid).subscribe( clientsData => { - console.log('Clients data:', clientsData); // Depuración const newChildren = [...childrenData, ...clientsData]; if (newChildren.length > 0) { this.children = newChildren; diff --git a/ogWebconsole/src/app/components/groups/model.ts b/ogWebconsole/src/app/components/groups/model.ts index 77c405d..8d52796 100644 --- a/ogWebconsole/src/app/components/groups/model.ts +++ b/ogWebconsole/src/app/components/groups/model.ts @@ -12,6 +12,7 @@ export interface UnidadOrganizativa { id: number; nombre: string; uuid: string; + type: string; aulas: Aula[]; }