diff --git a/ogWebconsole/src/app/components/groups/shared/organizational-units/show-organizational-unit/show-organizational-unit.component.html b/ogWebconsole/src/app/components/groups/shared/organizational-units/show-organizational-unit/show-organizational-unit.component.html index 5032052..c54af3c 100644 --- a/ogWebconsole/src/app/components/groups/shared/organizational-units/show-organizational-unit/show-organizational-unit.component.html +++ b/ogWebconsole/src/app/components/groups/shared/organizational-units/show-organizational-unit/show-organizational-unit.component.html @@ -15,7 +15,8 @@ - + @@ -30,4 +31,4 @@
{{ 'propertyHeader' | translate }}
- + \ No newline at end of file diff --git a/ogWebconsole/src/app/components/groups/shared/organizational-units/show-organizational-unit/show-organizational-unit.component.ts b/ogWebconsole/src/app/components/groups/shared/organizational-units/show-organizational-unit/show-organizational-unit.component.ts index 14be025..8eabdeb 100644 --- a/ogWebconsole/src/app/components/groups/shared/organizational-units/show-organizational-unit/show-organizational-unit.component.ts +++ b/ogWebconsole/src/app/components/groups/shared/organizational-units/show-organizational-unit/show-organizational-unit.component.ts @@ -1,6 +1,6 @@ import { HttpClient } from '@angular/common/http'; -import {Component, Inject} from '@angular/core'; -import {MAT_DIALOG_DATA} from "@angular/material/dialog"; +import { Component, Inject } from '@angular/core'; +import { MAT_DIALOG_DATA } from "@angular/material/dialog"; @Component({ selector: 'app-show-organizational-unit', @@ -14,6 +14,12 @@ export class ShowOrganizationalUnitComponent { ou: any; generalData: any[] = []; networkData: any[] = []; + typeTranslations: { [key: string]: string } = { + 'organizational-unit': 'Centro', + 'classrooms-group': 'Grupo de aulas', + 'classroom': 'Aula', + 'clients-group': 'Grupo de clientes' + }; constructor( @Inject(MAT_DIALOG_DATA) public data: any, @@ -60,7 +66,7 @@ export class ShowOrganizationalUnitComponent { { property: 'Uuid', value: this.ou.uuid }, { property: 'Descripción', value: this.ou.description }, { property: 'Comentarios', value: this.ou.comments }, - { property: 'Tipo', value: this.ou.type }, + { property: 'Tipo', value: this.typeTranslations[this.ou.type] }, { property: 'Unidad organizativa superior', value: this.ou.parent ? this.ou.parent.name : '-' }, { property: 'Creado el', value: this.ou.createdAt }, ];