From 48d880d3c8f8c43b55ca3d895d257646031345fa Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 13 Jul 2023 20:34:02 +0100 Subject: [PATCH] FIX: Rerender related topics correctly when topic changes (#100) * FIX: Rerender related topics correctly when topic changes Co-authored-by: Rafael dos Santos Silva --- .../topic-above-suggested/related-topics.hbs | 2 +- .../topic-above-suggested/related-topics.js | 29 ++++++++++--------- .../common/semantic-related-topics.scss | 3 ++ plugin.rb | 2 ++ 4 files changed, 21 insertions(+), 15 deletions(-) rename assets/javascripts/discourse/{templates => }/connectors/topic-above-suggested/related-topics.hbs (85%) create mode 100644 assets/stylesheets/modules/embeddings/common/semantic-related-topics.scss diff --git a/assets/javascripts/discourse/templates/connectors/topic-above-suggested/related-topics.hbs b/assets/javascripts/discourse/connectors/topic-above-suggested/related-topics.hbs similarity index 85% rename from assets/javascripts/discourse/templates/connectors/topic-above-suggested/related-topics.hbs rename to assets/javascripts/discourse/connectors/topic-above-suggested/related-topics.hbs index 282be2d7..d62a260c 100644 --- a/assets/javascripts/discourse/templates/connectors/topic-above-suggested/related-topics.hbs +++ b/assets/javascripts/discourse/connectors/topic-above-suggested/related-topics.hbs @@ -1,4 +1,4 @@ -
+