From 2f932812e01be684d7871186fd6f41d57a195f64 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Fri, 29 Nov 2024 21:32:48 +0100 Subject: [PATCH] DEV: Add `topic-list-header-sortable-column` transformer (#29917) For conditionally disabling ability to sort on specific columns in the topic list. --- .../discourse/app/components/topic-list/header.gjs | 9 ++++++++- .../discourse/app/components/topic-list/list.gjs | 6 +----- .../discourse/app/lib/transformer/registry.js | 1 + 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/topic-list/header.gjs b/app/assets/javascripts/discourse/app/components/topic-list/header.gjs index 9f9edbac507..f8879b73f60 100644 --- a/app/assets/javascripts/discourse/app/components/topic-list/header.gjs +++ b/app/assets/javascripts/discourse/app/components/topic-list/header.gjs @@ -1,8 +1,15 @@ +import { hash } from "@ember/helper"; +import { applyValueTransformer } from "discourse/lib/transformer"; + const Header =