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

* FIX: additionalOpts should be added outside conditional

* FIX: changed the computed property to function
This commit is contained in:
Faizaan Gagan 2021-03-30 00:57:55 +05:30 committed by GitHub
parent 70970bb791
commit ff814dcfc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -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(),