Skip to content

Commit

Permalink
feat(search-details): search-details is now opened after focus
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Sep 19, 2019
1 parent 8787a5f commit e0f4e1c
Showing 1 changed file with 4 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
Component,
ChangeDetectionStrategy,
Input
} from '@angular/core';
import { Component, ChangeDetectionStrategy, Input } from '@angular/core';
import { Observable, BehaviorSubject } from 'rxjs';
import { map } from 'rxjs/operators';
import olFormatGeoJSON from 'ol/format/GeoJSON';
Expand Down Expand Up @@ -129,10 +125,10 @@ export class SearchResultsToolComponent {
}

toggleTopPanel() {
if (this.topPanelState === 'collapsed') {
this.topPanelState = 'expanded';
} else {
if (this.topPanelState === 'expanded') {
this.topPanelState = 'collapsed';
} else {
this.topPanelState = 'expanded';
}
}

Expand Down Expand Up @@ -181,5 +177,4 @@ export class SearchResultsToolComponent {
.createAsyncLayer(layerOptions)
.subscribe(layer => this.map.addLayer(layer));
}

}

0 comments on commit e0f4e1c

Please sign in to comment.