2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

DEV: observes used properties in reason text (#14389)

This commit is contained in:
Joffrey JAFFEUX 2021-09-20 14:56:33 +02:00 committed by GitHub
parent 5fb45e712f
commit 0dd28cdd95
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -31,7 +31,10 @@ export default Component.extend({
}
},
@discourseComputed("topic", "topic.details")
@discourseComputed(
"topic",
"topic.details.{notification_level,notifications_reason_id}"
)
notificationReasonText(topic, topicDetails) {
let level = topicDetails.notification_level;
let reason = topicDetails.notifications_reason_id;