Skip to content

Commit

Permalink
fix: add brand name configuration for cartographie pages (#401)
Browse files Browse the repository at this point in the history
  • Loading branch information
marc-gavanier authored Nov 27, 2023
1 parent ae23f06 commit 73fc34e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { ChangeDetectionStrategy, Component, Inject, Input, OnInit } from '@angular/core';
import { Router } from '@angular/router';
import {
BRAND_CONFIGURATION,
DATA_CONFIGURATION,
FEATURES_TOKEN,
FeaturesConfiguration,
Expand Down Expand Up @@ -29,6 +30,14 @@ export class CartographieWebComponentLayout implements OnInit {
DATA_CONFIGURATION.lieuxDeMediationNumerique = source;
}

@Input() set titre(name: string) {
BRAND_CONFIGURATION.name = name;
}

@Input() set sousTitre(sousTitre: string) {
BRAND_CONFIGURATION.sousTitre = sousTitre;
}

@Input() set lienOrientation(lienOrientation: string) {
this._features.set('orientation', { active: false, url: lienOrientation });
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ export class CoordinateursWebComponentLayout implements OnInit {
DATA_COORDINATEURS_CONFIGURATION.coordinateurs = coordinateursSource;
}

@Input() set brandName(name: string) {
@Input() set titre(name: string) {
BRAND_CONFIGURATION.name = name;
}

@Input() set brandSousTitre(sousTitre: string) {
@Input() set sousTitre(sousTitre: string) {
BRAND_CONFIGURATION.sousTitre = sousTitre;
}

Expand Down

0 comments on commit 73fc34e

Please sign in to comment.