Skip to content

Commit

Permalink
refactor(sensors): Hide panel header when used without map
Browse files Browse the repository at this point in the history
  • Loading branch information
FilipLeitner committed Jun 10, 2024
1 parent ffaae8a commit cd316f2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
<div class="card panel-default hs-main-panel" *ngIf="isVisible$ | async" [ngClass]="panelWidthClass">
<hs-panel-header *ngIf="!hsSensorsService.unitInUrl" name="sensors" [panelTabs]="'SENSORS'"></hs-panel-header>
<hs-panel-header *ngIf="!hsSensorsService.unitInUrl && !hsSensorsService.mapServiceDisabled" name="sensors"
[panelTabs]="'SENSORS'"></hs-panel-header>
<div class="card-body">
<p [hidden]="hsSensorsService.unitInUrl"> <input type="text" class="form-control"
[placeholder]="'COMMON.filter' | translateHs " [(ngModel)]="query.description"></p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ export class HsSensorsService {
private hsEventBusService: HsEventBusService,
private hsSensorsUnitDialogService: HsSensorsUnitDialogService,
private hsLog: HsLogService,
@Optional() @Inject('MAPSERVICE_DISABLED') mapServiceDisabled: boolean,
@Optional()
@Inject('MAPSERVICE_DISABLED')
public mapServiceDisabled: boolean,
@Optional() @Inject('HsQueryVectorService') hsQueryVectorService,
) {
const urlParams = new URLSearchParams(location.search);
Expand Down

0 comments on commit cd316f2

Please sign in to comment.