repair tests bis

This commit is contained in:
Samuel Cambien
2022-09-30 14:22:02 +02:00
parent e3351eb739
commit 80500e716d
7 changed files with 56 additions and 18 deletions

View File

@@ -1,6 +1,6 @@
import { Component, Input, OnChanges, SimpleChanges } from '@angular/core';
import { Component, Inject, Input, OnChanges, SimpleChanges } from '@angular/core';
import { MetadataValue } from '../../../core/shared/metadata.models';
import { environment } from '../../../../environments/environment';
import { APP_CONFIG, AppConfig } from '../../../../config/app-config.interface';
/**
* This component renders the configured 'values' into the ds-metadata-field-wrapper component.
@@ -13,6 +13,11 @@ import { environment } from '../../../../environments/environment';
})
export class MetadataValuesComponent implements OnChanges {
constructor(
@Inject(APP_CONFIG) private appConfig: AppConfig,
) {
}
/**
* The metadata values to display
*/
@@ -41,6 +46,6 @@ export class MetadataValuesComponent implements OnChanges {
renderMarkdown;
ngOnChanges(changes: SimpleChanges): void {
this.renderMarkdown = !!environment.markdown.enabled && this.enableMarkdown;
this.renderMarkdown = !!this.appConfig.markdown.enabled && this.enableMarkdown;
}
}