Commit 74757564 authored by Florent Poittevin's avatar Florent Poittevin
Browse files

fix: disable preview in archive detail file

parent a445319a
......@@ -2,6 +2,7 @@
*ngIf="data"
[canEdit]="false"
[canDelete]="false"
[canPreview]="false"
[data]="data"
[solidifySpinner]="data | isNullOrUndefined"
></dlcm-shared-file-and-aip-information-container>
......@@ -51,6 +51,7 @@ import {
FILE_VISUALIZERS,
FileInput,
FileVisualizerHelper,
isFalse,
isNullOrUndefined,
LABEL_TRANSLATE,
LabelTranslateInterface,
......@@ -103,6 +104,9 @@ export class SharedFileAndAipInformationContainer<TResource extends BaseResource
@Input()
canDelete: boolean = false;
@Input()
canPreview: boolean = true;
get modeEnum(): typeof SharedFileAndAipDetailDialogModeEnum {
return SharedFileAndAipDetailDialogModeEnum;
}
......@@ -212,6 +216,10 @@ export class SharedFileAndAipInformationContainer<TResource extends BaseResource
if (isNullOrUndefined(this.data)) {
return;
}
if (isFalse(this.canPreview)) {
this.previewAvailable = false;
return;
}
if (this.previewAvailable) {
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment