From c8ac2c7002fa138fdf6afeff6f7385e03b6c9015 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Thu, 23 Jan 2025 04:21:46 +0100 Subject: [PATCH] DEV: Display unsolved icon only on the topic list (#330) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit …in the new topic-status implementation (using the next `@context` from https://github.com/discourse/discourse/pull/30940) This roughly matches the old implementation (but there it was displayed in some places but not in others mostly because of implementation details/bugs) --- .../after-topic-status/solved-status.gjs | 45 +++++++++---------- 1 file changed, 21 insertions(+), 24 deletions(-) diff --git a/assets/javascripts/discourse/connectors/after-topic-status/solved-status.gjs b/assets/javascripts/discourse/connectors/after-topic-status/solved-status.gjs index 05a792f..829af3e 100644 --- a/assets/javascripts/discourse/connectors/after-topic-status/solved-status.gjs +++ b/assets/javascripts/discourse/connectors/after-topic-status/solved-status.gjs @@ -1,27 +1,24 @@ -import Component from "@glimmer/component"; -import { service } from "@ember/service"; -import { or } from "truth-helpers"; +import { and, eq, or } from "truth-helpers"; import icon from "discourse/helpers/d-icon"; import { i18n } from "discourse-i18n"; -export default class SolvedStatus extends Component { - @service siteSettings; - - -} +const SolvedStatus = ; +export default SolvedStatus;