mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
#885 remove redundant config
This commit is contained in:
@@ -8,13 +8,13 @@
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="col-xs-12 col-md-4">
|
||||
<ng-container *ngIf="!mediaViewer.enable">
|
||||
<ng-container *ngIf="!mediaViewer.image">
|
||||
|
||||
<ds-metadata-field-wrapper>
|
||||
<ds-thumbnail [thumbnail]="getThumbnail() | async"></ds-thumbnail>
|
||||
</ds-metadata-field-wrapper>
|
||||
</ng-container>
|
||||
<ng-container *ngIf="mediaViewer.enable">
|
||||
<ng-container *ngIf="mediaViewer.image">
|
||||
<ds-media-viewer [item]="object" [imageOptions]="mediaViewer.image" [videoOptions]="mediaViewer.video"></ds-media-viewer>
|
||||
</ng-container>
|
||||
<ds-item-page-file-section [item]="object"></ds-item-page-file-section>
|
||||
|
@@ -1,7 +1,6 @@
|
||||
import { Config } from './config.interface';
|
||||
|
||||
export interface MediaViewerConfig extends Config {
|
||||
enable: boolean;
|
||||
image: boolean;
|
||||
video: boolean;
|
||||
}
|
||||
|
@@ -223,7 +223,6 @@ export const environment: GlobalConfig = {
|
||||
// Whether the UI should rewrite file download URLs to match its domain. Only necessary to enable when running UI and REST API on separate domains
|
||||
rewriteDownloadUrls: false,
|
||||
mediaViewer: {
|
||||
enable: true,
|
||||
image: true,
|
||||
video: true,
|
||||
},
|
||||
|
Reference in New Issue
Block a user