From cd071182e181e47c435f9ccf9c9d88b63f77c7c5 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Thu, 31 Aug 2023 09:21:52 +0800 Subject: [PATCH] DEV: Switch to new API to render into plugin outlet Why this change? The renderInOutlet plugin API was introduced in Discourse core which we will prefer to use going forward. --- .discourse-compatibility | 3 ++- javascripts/discourse/components/custom-header-links.hbs | 2 +- .../before-header-panel/custom-header-link-connector.hbs | 1 - .../discourse/initializers/discourse-custom-header-links.js | 6 ++++++ 4 files changed, 9 insertions(+), 3 deletions(-) delete mode 100644 javascripts/discourse/connectors/before-header-panel/custom-header-link-connector.hbs create mode 100644 javascripts/discourse/initializers/discourse-custom-header-links.js diff --git a/.discourse-compatibility b/.discourse-compatibility index 938ccf7..5a33eee 100644 --- a/.discourse-compatibility +++ b/.discourse-compatibility @@ -1,2 +1,3 @@ -3.1.999: bd0594108a1cfd6c11cb8af218dba9b211b44015 +< 3.2.0.beta2-dev: 061adfe5ae20abbb82be711d373894c30987ec75 < 3.2.0.beta1-dev: c344d0f519bbb3660e306c50c0d1aa1a776c5e13 +3.1.999: bd0594108a1cfd6c11cb8af218dba9b211b44015 diff --git a/javascripts/discourse/components/custom-header-links.hbs b/javascripts/discourse/components/custom-header-links.hbs index 4038329..a8ed5ec 100644 --- a/javascripts/discourse/components/custom-header-links.hbs +++ b/javascripts/discourse/components/custom-header-links.hbs @@ -1,7 +1,7 @@ {{#if this.shouldShow}}