Skip to content

Commit c30b7cd

Browse files
authored
Merge pull request #2287 from citizenos/#2265
#2265
2 parents 8fa1087 + d668777 commit c30b7cd

File tree

14 files changed

+528
-444
lines changed

14 files changed

+528
-444
lines changed

src/app/core/components/search/search.component.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
</div>
3434
<div id="results_area" *ngIf="app.showSearchResults">
3535
<div class="results_header" translate="COMPONENTS.SEARCH.HEADING_SEARCH_RESULTS"></div>
36+
<div class="results_no_results_wrap" *ngIf="noResults">
37+
<span class="results_no_results_text" translate="COMPONENTS.SEARCH.TXT_NO_RESULTS_FOUND"></span>
38+
<span class="results_no_results_link" (click)="toggleHelp()" translate="COMPONENTS.SEARCH.LNK_HELP_PANEL"></span>
39+
</div>
3640
<ng-container *ngFor="let context of contexts">
3741
<ng-container *ngFor="let model of models">
3842
<ng-container

src/app/core/components/search/search.component.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,24 @@
114114
padding: 16px;
115115
}
116116

117+
.results_no_results_wrap {
118+
display: flex;
119+
flex-direction: column;
120+
gap: 4px;
121+
}
122+
123+
.results_no_results_text {
124+
font-size: 13px;
125+
font-style: normal;
126+
font-weight: 400;
127+
}
128+
129+
.results_no_results_link {
130+
@extend .results_no_results_text;
131+
cursor: pointer;
132+
text-decoration: underline;
133+
}
134+
117135
.line_separator {
118136
background-color: var(--color-blue-200);
119137
}

src/app/core/components/search/search.component.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,9 @@ export class SearchComponent implements OnInit {
186186
});
187187
}
188188
};
189+
190+
toggleHelp() {
191+
const curStatus = this.app.showHelp.getValue();
192+
this.app.showHelp.next(!curStatus);
193+
}
189194
}

0 commit comments

Comments
 (0)