From 35b0c2da37318f502bb7069ee8e3565eb3ba5dbf Mon Sep 17 00:00:00 2001 From: Kris Date: Wed, 25 Oct 2023 10:10:22 -0400 Subject: [PATCH] FEATURE: add plugin outlet setting (#32) --- .../discourse/initializers/initialize-brand-header.js | 2 +- settings.yaml | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/javascripts/discourse/initializers/initialize-brand-header.js b/javascripts/discourse/initializers/initialize-brand-header.js index 193a5c6..7ea2aaf 100644 --- a/javascripts/discourse/initializers/initialize-brand-header.js +++ b/javascripts/discourse/initializers/initialize-brand-header.js @@ -14,7 +14,7 @@ export default { ); withPluginApi("1.14.0", (api) => { - api.renderInOutlet("above-site-header", BrandHeaderContainer); + api.renderInOutlet(settings.plugin_outlet, BrandHeaderContainer); }); }, }; diff --git a/settings.yaml b/settings.yaml index 8c8ce02..02b98b5 100644 --- a/settings.yaml +++ b/settings.yaml @@ -24,3 +24,9 @@ custom_font_awesome_icons: show_bar_on_mobile: type: bool default: false +plugin_outlet: + default: "above-site-header" + type: enum + choices: + - "above-site-header" + - "below-site-header"