Skip to content

Commit

Permalink
fix(search-results-details): fix flexible state
Browse files Browse the repository at this point in the history
  • Loading branch information
mbarbeau committed Oct 2, 2019
1 parent 56e45cd commit af5058d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ <h4>{{ 'igo.integration.searchResultsTool.noResults' | translate }}</h4>
collapsedMobile="calc(100% - 58px)"
expanded="60%"
expandedMobile="60%"
[state]="topPanelState">
[state]="(feature$ | async) ? topPanelState : 'initial'">

<div class="igo-content">
<igo-search-results
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,13 +69,7 @@ export class SearchResultsToolComponent {
return this.store.stateView
.firstBy$(e => e.state.focused)
.pipe(
map(element => {
this.feature = element ? (element.entity.data as Feature) : undefined;
!this.feature
? (this.topPanelState = 'initial')
: (this.topPanelState = 'expanded');
return this.feature;
})
map(element => (element ? (element.entity.data as Feature) : undefined))
);
}

Expand Down

0 comments on commit af5058d

Please sign in to comment.