From 71c6704813a8b09124b54ba91face6402993505b Mon Sep 17 00:00:00 2001 From: QuCMGisaia Date: Fri, 25 Oct 2024 11:30:17 +0200 Subject: [PATCH] feat: use display name for collections --- src/app/app.module.ts | 5 +++-- src/app/components/dynamic-hub/dynamic-hub.component.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/app/app.module.ts b/src/app/app.module.ts index d1bac93..38b79d1 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -40,7 +40,7 @@ import { BrowserModule } from '@angular/platform-browser'; import { BrowserAnimationsModule } from '@angular/platform-browser/animations'; import { TranslateLoader, TranslateModule, TranslateService } from '@ngx-translate/core'; import { OAuthModule } from 'angular-oauth2-oidc'; -import { GetValueModule } from 'arlas-web-components'; +import { GetValueModule, GetCollectionDisplayModule } from 'arlas-web-components'; import enComponents from 'arlas-web-components/assets/i18n/en.json'; import frComponents from 'arlas-web-components/assets/i18n/fr.json'; import { @@ -154,7 +154,8 @@ export class CustomTranslateLoader implements TranslateLoader { } }), OAuthModule.forRoot(), - GetValueModule + GetValueModule, + GetCollectionDisplayModule ], providers: [ SidenavService, diff --git a/src/app/components/dynamic-hub/dynamic-hub.component.html b/src/app/components/dynamic-hub/dynamic-hub.component.html index b7876c2..9d87b37 100644 --- a/src/app/components/dynamic-hub/dynamic-hub.component.html +++ b/src/app/components/dynamic-hub/dynamic-hub.component.html @@ -47,7 +47,7 @@

{{'Collections' | translate}}

[class.disabled]="!col.value.selected" (click)="getCheckbox(!col.value.selected, col.key)" *ngFor="let col of cardCollections | keyvalue"> - {{col.key | translate}} + {{col.key | getCollectionDisplayName | translate}}