From 474bfb5757186f5b08ad651c770b586dce2fc3c3 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Thu, 23 Jan 2025 04:21:31 +0100 Subject: [PATCH] DEV: Add a `context` arg to after-topic-status outlet (#30940) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …so that plugins/themes can conditionally conditionally display their topic-status icon (e.g. just on the topic list, or everywhere but the header) --- .../discourse/app/components/header/topic/info.gjs | 1 + .../app/components/search-menu/results/type/topic.hbs | 6 +++++- .../discourse/app/components/topic-list/featured-topic.gjs | 2 +- .../discourse/app/components/topic-list/item.gjs | 2 +- .../discourse/app/components/topic-list/item/topic-cell.gjs | 2 +- .../app/components/topic-list/latest-topic-list-item.gjs | 2 +- .../javascripts/discourse/app/components/topic-status.gjs | 2 +- 7 files changed, 11 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/header/topic/info.gjs b/app/assets/javascripts/discourse/app/components/header/topic/info.gjs index cb7a60a0aa9..c44845d0919 100644 --- a/app/assets/javascripts/discourse/app/components/header/topic/info.gjs +++ b/app/assets/javascripts/discourse/app/components/header/topic/info.gjs @@ -108,6 +108,7 @@ export default class Info extends Component { - + {{#if (and diff --git a/app/assets/javascripts/discourse/app/components/topic-list/featured-topic.gjs b/app/assets/javascripts/discourse/app/components/topic-list/featured-topic.gjs index d11fce1be2d..2977809a17a 100644 --- a/app/assets/javascripts/discourse/app/components/topic-list/featured-topic.gjs +++ b/app/assets/javascripts/discourse/app/components/topic-list/featured-topic.gjs @@ -17,7 +17,7 @@ const onTimestampClick = function (event) { const FeaturedTopic =