DEV: Add class when replies above exists (#23000)

This commit is contained in:
Jordan Vidrine 2023-08-07 15:50:17 -05:00 committed by GitHub
parent 9e9aa8f653
commit 976219ed5c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -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");
}