Skip to content

Commit a75a8f5

Browse files
authored
refactor: adding an option to hide time range in page header (#1001)
1 parent 47a0ae0 commit a75a8f5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

projects/components/src/header/application/application-header.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { ChangeDetectionStrategy, Component, Inject } from '@angular/core';
1+
import { ChangeDetectionStrategy, Component, Inject, Input } from '@angular/core';
22
import { GLOBAL_HEADER_HEIGHT, NavigationService } from '@hypertrace/common';
33

44
@Component({
@@ -15,7 +15,7 @@ import { GLOBAL_HEADER_HEIGHT, NavigationService } from '@hypertrace/common';
1515
<div class="left-side-content">
1616
<ng-content select="[left]"></ng-content>
1717
</div>
18-
<div class="time-range">
18+
<div class="time-range" *ngIf="this.showTimeRange">
1919
<ht-time-range></ht-time-range>
2020
</div>
2121
</div>
@@ -27,6 +27,9 @@ import { GLOBAL_HEADER_HEIGHT, NavigationService } from '@hypertrace/common';
2727
`
2828
})
2929
export class ApplicationHeaderComponent {
30+
@Input()
31+
public showTimeRange: boolean = true;
32+
3033
public constructor(
3134
@Inject(GLOBAL_HEADER_HEIGHT) public readonly height: string,
3235
private readonly navigationService: NavigationService

0 commit comments

Comments
 (0)