DEV: Remove legacy topic-list code (#657)

This commit is contained in:
David Taylor 2025-04-14 14:38:57 +01:00 committed by GitHub
parent 261a47d119
commit bf52519dc7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1 additions and 23 deletions

View File

@ -1,3 +1,4 @@
< 3.5.0.beta3-dev: 261a47d119d200a8d922d008ad3d1667df869435
< 3.5.0.beta2-dev: bf2a4bdb3ea4e26ec493d8dbc1f4cc8680f6c543
< 3.5.0.beta1-dev: 698b5be85cc1a31707d528fe0d3c3c07c939c1df
< 3.4.0.beta4-dev: 654f197003f9cdf1926b07137fc2214b21c91a79

View File

@ -1 +0,0 @@
{{!-- has-modern-replacement --}}{{raw "assign-topic-buttons" topic=context.topic}}

View File

@ -1 +0,0 @@
{{!-- has-modern-replacement --}}{{{view.html}}}

View File

@ -1,21 +0,0 @@
import EmberObject from "@ember/object";
import { service } from "@ember/service";
import rawRenderGlimmer from "discourse/lib/raw-render-glimmer";
import AssignedTopicListColumn from "../components/assigned-topic-list-column";
const ASSIGN_LIST_ROUTES = ["userActivity.assigned", "group.assigned.show"];
export default class extends EmberObject {
@service router;
get html() {
if (ASSIGN_LIST_ROUTES.includes(this.router.currentRouteName)) {
return rawRenderGlimmer(
this,
"td.assign-topic-buttons",
<template><AssignedTopicListColumn @topic={{@data.topic}} /></template>,
{ topic: this.topic }
);
}
}
}