File tree Expand file tree Collapse file tree 4 files changed +29
-0
lines changed
app/core/components/search Expand file tree Collapse file tree 4 files changed +29
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 }
Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff line change 761761 "HEADING_SEARCH_RESULTS" : " Global search results" ,
762762 "HEADING_RESULTS_IN" : " Search results in: <b>{{context}}</b>" ,
763763 "LNK_VIEW_MORE_RESULTS" : " View more results" ,
764+ "LNK_HELP_PANEL" : " Try here." ,
764765 "TXT_OOPS_NO_RESULTS" : " We couldn’t find any results matching your search :(" ,
766+ "TXT_NO_RESULTS_FOUND" : " No results found. Looking for help?" ,
765767 "TXT_MAYBE_TYPO" : " Maybe there's a typo in your search?"
766768 },
767769 "TOPIC_IDEATION" : {
You can’t perform that action at this time.
0 commit comments