From 6136a275dd6b6028488ca9bb5b5f941d96048939 Mon Sep 17 00:00:00 2001 From: Jarek Radosz Date: Tue, 27 Aug 2024 21:56:04 +0200 Subject: [PATCH] DEV: Fix an `on` import deprecation (#28588) --- .../javascripts/discourse/app/components/composer-editor.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/composer-editor.js b/app/assets/javascripts/discourse/app/components/composer-editor.js index c30bfc29239..7f444cc3ec4 100644 --- a/app/assets/javascripts/discourse/app/components/composer-editor.js +++ b/app/assets/javascripts/discourse/app/components/composer-editor.js @@ -4,7 +4,7 @@ import { alias } from "@ember/object/computed"; import { getOwner } from "@ember/owner"; import { next, schedule, throttle } from "@ember/runloop"; import { classNameBindings } from "@ember-decorators/component"; -import { observes } from "@ember-decorators/object"; +import { observes, on } from "@ember-decorators/object"; import { BasePlugin } from "@uppy/core"; import $ from "jquery"; import { resolveAllShortUrls } from "pretty-text/upload-short-url"; @@ -41,7 +41,6 @@ import { findRawTemplate } from "discourse-common/lib/raw-templates"; import discourseComputed, { bind, debounce, - on, } from "discourse-common/utils/decorators"; import I18n from "discourse-i18n";