From 87404864d20f318629a1413383c76b8ce4bfd398 Mon Sep 17 00:00:00 2001 From: Alan Guo Xiang Tan Date: Wed, 11 Oct 2023 11:33:37 +0800 Subject: [PATCH] DEV: Switch to new API to render into plugin outlet (#37) Why this change? The renderInOutlet plugin API was introduced in Discourse core which we will prefer to use going forward. --- .discourse-compatibility | 3 +- .../components/custom-header-links.hbs | 2 +- .../custom-header-link-connector.hbs | 1 - .../discourse-custom-header-links.js | 6 ++++ .../components/custom_header_link.rb | 17 ++++++++++ .../viewing_custom_header_links_spec.rb | 32 +++++++++++++++++++ 6 files changed, 58 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 create mode 100644 spec/system/page_objects/components/custom_header_link.rb create mode 100644 spec/system/viewing_custom_header_links_spec.rb 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}}