DEV: Add class when replies above exists (#23000)
This commit is contained in:
parent
9e9aa8f653
commit
976219ed5c
|
@ -724,8 +724,11 @@ createWidget("post-article", {
|
|||
return `post_${attrs.post_number}`;
|
||||
},
|
||||
|
||||
buildClasses(attrs) {
|
||||
buildClasses(attrs, state) {
|
||||
let classNames = [];
|
||||
if (state.repliesAbove.length) {
|
||||
classNames.push("replies-above");
|
||||
}
|
||||
if (attrs.via_email) {
|
||||
classNames.push("via-email");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue