A platform for community discussion. Free, open, simple.
FIX: additionalOpts update and change to function (#12546)
Faizaan Gaganff814dcfc128
diff --git a/app/assets/javascripts/discourse/app/components/topic-timer-info.js b/app/assets/javascripts/discourse/app/components/topic-timer-info.jsindex 7395930f79e..0b467f63955 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;},- @discourseComputedadditionalOpts() {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(),