UX: Add data-topic-id to featured topic items (#14031)

This commit is contained in:
Jordan Vidrine 2021-08-12 14:32:33 -05:00 committed by GitHub
parent 4602e14cac
commit 45c9bbc112
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 0 deletions

View File

@ -3,6 +3,7 @@ import discourseComputed from "discourse-common/utils/decorators";
export default Component.extend({
tagName: "li",
attributeBindings: ["topic.id:data-topic-id"],
@discourseComputed("topic.pinned", "topic.closed", "topic.archived")
topicStatusIcon(pinned, closed, archived) {

View File

@ -1,6 +1,7 @@
import Component from "@ember/component";
export default Component.extend({
classNameBindings: [":featured-topic"],
attributeBindings: ["topic.id:data-topic-id"],
click(e) {
const $target = $(e.target);