Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
DLCM
UI
DLCM-Portal
Commits
74757564
Commit
74757564
authored
Dec 23, 2021
by
Florent Poittevin
Browse files
fix: disable preview in archive detail file
parent
a445319a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/app/features/home/components/routables/home-archive-file-detail/home-archive-file-detail.routable.html
View file @
74757564
...
...
@@ -2,6 +2,7 @@
*ngIf=
"data"
[canEdit]=
"false"
[canDelete]=
"false"
[canPreview]=
"false"
[data]=
"data"
[solidifySpinner]=
"data | isNullOrUndefined"
></dlcm-shared-file-and-aip-information-container>
src/app/shared/components/containers/shared-file-and-aip-information/shared-file-and-aip-information.container.ts
View file @
74757564
...
...
@@ -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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment