Skip to content

Commit

Permalink
feat(ogc-time): allow alias to ogc-filter-time section (#981)
Browse files Browse the repository at this point in the history
* feat(ogc-time): allow alias to ogc-filter-time section

* refactor(ogc-filter-time): use sourceField alias

* refactor(ogc-filter-time): use title instead of alias
  • Loading branch information
PhilippeLafreniere18 authored Feb 22, 2022
1 parent c146d5a commit 55c634a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,8 @@ <h4>{{bundle.title}}</h4>

<div *ngIf="isTemporalOperator()">
<mat-divider></mat-divider>
<h4>{{ 'igo.geo.filter.reportingDate' | translate }}</h4>
<h4 *ngIf="!currentFilter.title">{{ 'igo.geo.filter.reportingDate' | translate }}</h4>
<h4 *ngIf="currentFilter.title">{{ currentFilter.title }}</h4>
<igo-ogc-filter-time
[(datasource)]="datasource"
[(currentFilter)]="currentFilter"
Expand Down
1 change: 1 addition & 0 deletions packages/geo/src/lib/filter/shared/ogc-filter.interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ export interface OgcFilterDuringOptions extends OgcFilterAttributeOptions {
sliderOptions?: SliderOptionsInterface;
displayFormat?: string;
calendarModeYear?: boolean;
title?: string;
}
export interface OgcFilterIsBetweenOptions extends OgcFilterAttributeOptions {
lowerBoundary: number;
Expand Down

0 comments on commit 55c634a

Please sign in to comment.