Skip to content

A platform for community discussion. Free, open, simple.

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

Joffrey JAFFEUX0dd28cdd95ab
diff --git a/app/assets/javascripts/select-kit/addon/components/topic-notifications-button.js b/app/assets/javascripts/select-kit/addon/components/topic-notifications-button.js
index 6eb41942251..d56dd51a69b 100644
--- a/app/assets/javascripts/select-kit/addon/components/topic-notifications-button.js
+++ b/app/assets/javascripts/select-kit/addon/components/topic-notifications-button.js
@@ -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;