From 4962bd64165686913e52c1e50c03ca937f9fb363 Mon Sep 17 00:00:00 2001 From: bluefroguk1 <62796282+bluefroguk1@users.noreply.github.com> Date: Fri, 24 May 2024 04:13:19 +0100 Subject: [PATCH] Update event-label.js Removed registerUnbound --- assets/javascripts/discourse/helpers/event-label.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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 }))); });