Skip to content
Permalink
Browse files
chore(resource): hide file value in properties (DSP-1261) (#484)
  • Loading branch information
kilchenmann committed Jul 13, 2021
1 parent 4d0703f commit 4ade17f86e91d28b9a751e63b4d6480dfa1d5939
Showing with 15 additions and 1 deletion.
  1. +7 −1 src/app/workspace/resource/properties/properties.component.html
  2. +8 −0 src/app/workspace/resource/properties/properties.component.ts
@@ -76,7 +76,13 @@ <h3 class="label mat-title">
<!-- list of properties -->
<div *ngFor="let prop of resource.resProps; let last = last">
<!-- show property; all in case of showAll === true or only the ones with prop.values -->
<div *ngIf="!prop.propDef['isLinkProperty'] && showAllProps || ( prop.values && prop.values.length > 0 )"
<div *ngIf="(showAllProps || ( prop.values && prop.values.length > 0 )) &&
(!prop.propDef['isLinkProperty'] &&
prop.guiDef.propertyIndex !== representationConstants.stillImage &&
prop.guiDef.propertyIndex !== representationConstants.movingImage &&
prop.guiDef.propertyIndex !== representationConstants.audio &&
prop.guiDef.propertyIndex !== representationConstants.document &&
prop.guiDef.propertyIndex !== representationConstants.text)"
[class.border-bottom]="prop.values && !last"
class="property">
<div class="property-label">
@@ -82,6 +82,14 @@ export class PropertiesComponent implements OnInit, OnChanges, OnDestroy {

valueOperationEventSubscriptions: Subscription[] = []; // array of ValueOperationEvent subscriptions

representationConstants = {
'stillImage': Constants.HasStillImageFileValue,
'movingImage': Constants.HasMovingImageFileValue,
'audio': Constants.HasAudioFileValue,
'document': Constants.HasDocumentFileValue,
'text': Constants.HasTextFileValue
};

project: ReadProject;
user: ReadUser;

0 comments on commit 4ade17f

Please sign in to comment.