mirror of
https://github.com/discourse/discourse.git
synced 2026-08-06 03:07:17 -05:00
FIX: Ensure badge description is updated when routing without loading state (#12196)
This commit is contained in:
@@ -22,14 +22,13 @@ export default Component.extend({
|
||||
}
|
||||
},
|
||||
|
||||
@discourseComputed("size")
|
||||
summary(size) {
|
||||
@discourseComputed("size", "badge.long_description", "badge.description")
|
||||
summary(size, longDescription, description) {
|
||||
if (size === "large") {
|
||||
const longDescription = this.get("badge.long_description");
|
||||
if (!isEmpty(longDescription)) {
|
||||
return emojiUnescape(sanitize(longDescription));
|
||||
}
|
||||
}
|
||||
return sanitize(this.get("badge.description"));
|
||||
return sanitize(description);
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user