mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
#885 remove redundant config
This commit is contained in:
@@ -8,13 +8,13 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-xs-12 col-md-4">
|
<div class="col-xs-12 col-md-4">
|
||||||
<ng-container *ngIf="!mediaViewer.enable">
|
<ng-container *ngIf="!mediaViewer.image">
|
||||||
|
|
||||||
<ds-metadata-field-wrapper>
|
<ds-metadata-field-wrapper>
|
||||||
<ds-thumbnail [thumbnail]="getThumbnail() | async"></ds-thumbnail>
|
<ds-thumbnail [thumbnail]="getThumbnail() | async"></ds-thumbnail>
|
||||||
</ds-metadata-field-wrapper>
|
</ds-metadata-field-wrapper>
|
||||||
</ng-container>
|
</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>
|
<ds-media-viewer [item]="object" [imageOptions]="mediaViewer.image" [videoOptions]="mediaViewer.video"></ds-media-viewer>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
<ds-item-page-file-section [item]="object"></ds-item-page-file-section>
|
<ds-item-page-file-section [item]="object"></ds-item-page-file-section>
|
||||||
|
@@ -1,7 +1,6 @@
|
|||||||
import { Config } from './config.interface';
|
import { Config } from './config.interface';
|
||||||
|
|
||||||
export interface MediaViewerConfig extends Config {
|
export interface MediaViewerConfig extends Config {
|
||||||
enable: boolean;
|
|
||||||
image: boolean;
|
image: boolean;
|
||||||
video: 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
|
// 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,
|
rewriteDownloadUrls: false,
|
||||||
mediaViewer: {
|
mediaViewer: {
|
||||||
enable: true,
|
|
||||||
image: true,
|
image: true,
|
||||||
video: true,
|
video: true,
|
||||||
},
|
},
|
||||||
|
Reference in New Issue
Block a user