mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:40:00 +08:00
DEV: Outlet for unobtrusive secondary full-page search. (#23390)
`discourse-ai` will use the outlet to perform a parallel semantic search.
This commit is contained in:
parent
2768f3a968
commit
7a34ea7953
|
@ -55,6 +55,7 @@ export default Controller.extend({
|
|||
application: controller(),
|
||||
composer: service(),
|
||||
modal: service(),
|
||||
appEvents: service(),
|
||||
|
||||
bulkSelectEnabled: null,
|
||||
loading: false,
|
||||
|
@ -510,6 +511,9 @@ export default Controller.extend({
|
|||
?.removeAttribute("open");
|
||||
}
|
||||
this.set("page", 1);
|
||||
|
||||
this.appEvents.trigger("full-page-search:trigger-search");
|
||||
|
||||
this._search();
|
||||
},
|
||||
|
||||
|
|
|
@ -81,6 +81,12 @@
|
|||
</div>
|
||||
|
||||
<div class="search-advanced">
|
||||
<PluginOutlet
|
||||
@name="full-page-search-below-search-header"
|
||||
@connectorTagName="div"
|
||||
@outletArgs={{hash search=this.searchTerm type=this.search_type}}
|
||||
/>
|
||||
|
||||
{{#if this.hasResults}}
|
||||
{{#if this.usingDefaultSearchType}}
|
||||
<div
|
||||
|
|
Loading…
Reference in New Issue
Block a user