diff --git a/assets/javascripts/discourse/helpers/event-label.js b/assets/javascripts/discourse/helpers/event-label.js index 08d32295..3e047cc3 100644 --- a/assets/javascripts/discourse/helpers/event-label.js +++ b/assets/javascripts/discourse/helpers/event-label.js @@ -1,8 +1,9 @@ -import { helperContext, registerUnbound } from "discourse-common/lib/helpers"; +import { helper } from '@ember/component/helper'; +import { helperContext } from "discourse-common/lib/helpers"; import { htmlSafe } from "@ember/template"; import { eventLabel } from "../lib/date-utilities"; -export default registerUnbound("event-label", function (event, args) { +export default helper(function eventLabelHelper([event], args) { let siteSettings = helperContext().siteSettings; return htmlSafe(eventLabel(event, Object.assign({}, args, { siteSettings }))); });