mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 10:04:11 +00:00
repair tests bis
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user