Skip to content

Commit

Permalink
Remove option to collapse location highlight
Browse files Browse the repository at this point in the history
  • Loading branch information
richardjanssen committed Mar 13, 2024
1 parent c83597b commit 55b4854
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions src/app/core/constants.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
import { PointHighlightType } from './types/highlight.type';

export class Constants {
public static readonly expandableHighlightTypes: PointHighlightType[] = [
PointHighlightType.photo,
PointHighlightType.blog,
PointHighlightType.location
];
public static readonly expandableHighlightTypes: PointHighlightType[] = [PointHighlightType.photo, PointHighlightType.blog];
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export class PointHighlightDetailsComponent {
@Input() highlight: PointHighlight;

pointHighlightType = PointHighlightType;
expandableHighlightTypes = Constants.expandableHighlightTypes;
expandableHighlightTypes = [...Constants.expandableHighlightTypes, PointHighlightType.location];
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<point-highlight-details [highlight]="highlight"></point-highlight-details>

<div class="expansion" (click)="toggleExpansion()">
<div *ngIf="expandable" class="expansion" (click)="toggleExpansion()">
<span class="expansion-text">Bekijk minder</span>
<bs-icon class="expansion-icon" name="chevron-compact-up" iconColor="light"></bs-icon>
</div>
Expand Down

0 comments on commit 55b4854

Please sign in to comment.