A platform for community discussion. Free, open, simple.
Add plugin outlet for google-search (#31733)
Michael Howell263b6a65c2ce
diff --git a/app/assets/javascripts/discourse/app/components/google-search.hbs b/app/assets/javascripts/discourse/app/components/google-search.hbsindex f7d7cd5b9db..1d357934613 100644--- a/app/assets/javascripts/discourse/app/components/google-search.hbs+++ b/app/assets/javascripts/discourse/app/components/google-search.hbs@@ -1,12 +1,18 @@-<form action="//google.com/search" id="google-search" class="inline-form">- <input- type="text"- name="q"- aria-label={{i18n "search.search_google"}}- value={{this.searchTerm}}- />- <input name="as_sitesearch" value={{this.siteUrl}} type="hidden" />- <button class="btn btn-primary" type="submit">{{i18n- "search.search_google_button"- }}</button>-</form>\ No newline at end of file+<PluginOutlet+ @name="google-search"+ @outletArgs={{hash searchTerm=this.searchTerm siteUrl=this.siteUrl}}+ @defaultGlimmer={{true}}+>+ <form action="//google.com/search" id="google-search" class="inline-form">+ <input+ type="text"+ name="q"+ aria-label={{i18n "search.search_google"}}+ value={{@searchTerm}}+ />+ <input name="as_sitesearch" value={{@siteUrl}} type="hidden" />+ <button class="btn btn-primary" type="submit">{{i18n+ "search.search_google_button"+ }}</button>+ </form>+</PluginOutlet>\ No newline at end of file