From f61de2d8715b541ab1e63c1109c4fd047d0386f5 Mon Sep 17 00:00:00 2001 From: Justin DiRose Date: Mon, 15 Mar 2021 11:23:37 -0500 Subject: [PATCH] DEV: Add parameter to plugin outlet (#37) This adds a parameters to the args hash of the before-docs-search plugin outlet so we can access tags via theme components using this outlet. --- assets/javascripts/discourse/templates/docs.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/javascripts/discourse/templates/docs.hbs b/assets/javascripts/discourse/templates/docs.hbs index f95aa83..d65677c 100644 --- a/assets/javascripts/discourse/templates/docs.hbs +++ b/assets/javascripts/discourse/templates/docs.hbs @@ -1,5 +1,5 @@
- {{plugin-outlet name="before-docs-search" args=(hash selectCategory=(action "updateSelectedCategories"))}} + {{plugin-outlet name="before-docs-search" args=(hash selectCategory=(action "updateSelectedCategories") tags=indexController.tags )}} {{docs-search searchTerm=(readonly indexController.searchTerm) onSearch=(action "performSearch")