Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{raw "assign-topic-buttons" topic=context.topic}}
{{!-- has-modern-replacement --}}{{raw "assign-topic-buttons" topic=context.topic}}
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import { withPluginApi } from "discourse/lib/plugin-api";
import AssignedTopicListColumn from "../components/assigned-topic-list-column";

const ASSIGN_LIST_ROUTES = ["userActivity.assigned", "group.assigned.show"];

const AssignActionsCell = <template>
<td class="assign-topic-buttons">
<AssignedTopicListColumn @topic={{@topic}} />
</td>
</template>;

export default {
name: "assignment-list-dropdowns",

initialize(container) {
const router = container.lookup("service:router");

withPluginApi("1.39.0", (api) => {
api.registerValueTransformer(
"topic-list-columns",
({ value: columns }) => {
if (ASSIGN_LIST_ROUTES.includes(router.currentRouteName)) {
columns.add("assign-actions", {
item: AssignActionsCell,
after: "activity",
});
}

return columns;
}
);
});
},
};
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{{{view.html}}}
{{!-- has-modern-replacement --}}{{{view.html}}}
Loading