#885 remove redundant config

This commit is contained in:
Dániel Péter Sipos
2020-11-20 15:11:12 +01:00
parent 81f0663914
commit 2ed7d153fa
3 changed files with 2 additions and 4 deletions

View File

@@ -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>

View File

@@ -1,7 +1,6 @@
import { Config } from './config.interface';
export interface MediaViewerConfig extends Config {
enable: boolean;
image: boolean;
video: boolean;
}

View File

@@ -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,
},