mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 04:03:57 -06:00
UX: Add data-topic-id to featured topic items (#14031)
This commit is contained in:
parent
4602e14cac
commit
45c9bbc112
@ -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) {
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user