From 7a4da926579e0b7386ab345d1b4b11e47e3de4e6 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Sat, 11 Jan 2025 12:13:47 +0100 Subject: [PATCH] DEV: Move topic-list-item-class transformer to a getter (#30726) See 03bb43f --- .../discourse/app/components/topic-list/item.gjs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/topic-list/item.gjs b/app/assets/javascripts/discourse/app/components/topic-list/item.gjs index 1ae0143e14a..9566621b182 100644 --- a/app/assets/javascripts/discourse/app/components/topic-list/item.gjs +++ b/app/assets/javascripts/discourse/app/components/topic-list/item.gjs @@ -1,5 +1,5 @@ import Component from "@glimmer/component"; -import { array, concat, hash } from "@ember/helper"; +import { concat, hash } from "@ember/helper"; import { on } from "@ember/modifier"; import { action } from "@ember/object"; import { next } from "@ember/runloop"; @@ -183,6 +183,13 @@ export default class Item extends Component { ); } + get additionalClasses() { + return applyValueTransformer("topic-list-item-class", [], { + topic: this.args.topic, + index: this.args.index, + }); + } +