From 0dd28cdd95abc695a7719125dd814cd15b85522d Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 20 Sep 2021 14:56:33 +0200 Subject: [PATCH] DEV: observes used properties in reason text (#14389) --- .../addon/components/topic-notifications-button.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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;