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

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;