FIX: additionalOpts update and change to function (#12546)

FIX: additionalOpts update and change to function (#12546)

  • FIX: additionalOpts should be added outside conditional

  • FIX: changed the computed property to function

diff --git a/app/assets/javascripts/discourse/app/components/topic-timer-info.js b/app/assets/javascripts/discourse/app/components/topic-timer-info.js
index 7395930..0b467f6 100644
--- a/app/assets/javascripts/discourse/app/components/topic-timer-info.js
+++ b/app/assets/javascripts/discourse/app/components/topic-timer-info.js
@@ -45,7 +45,6 @@ export default Component.extend({
     return canModifyTimer && showTopicTimerModal;
   },
 
-  @discourseComputed
   additionalOpts() {
     return {};
   },
@@ -94,11 +93,11 @@ export default Component.extend({
             categoryName: category.get("slug"),
             categoryUrl: category.get("url"),
           },
-          options,
-          this.additionalOpts
+          options
         );
       }
 
+      options = Object.assign(options, this.additionalOpts());
       this.setProperties({
         title: `${moment(this.executeAt).format("LLLL")}`.htmlSafe(),
         notice: `${I18n.t(this._noticeKey(), options)}`.htmlSafe(),

GitHub sha: ff814dcf

This commit appears in #12546 which was approved by eviltrout. It was merged by eviltrout.