From 08e2ee3ec1df31353c56518ac5d98dc20a96a179 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 2 Nov 2023 12:30:44 +0000 Subject: [PATCH] DEV: Resolve `observes` deprecation in create-account (#24217) --- .../discourse/app/components/modal/create-account.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/app/components/modal/create-account.js b/app/assets/javascripts/discourse/app/components/modal/create-account.js index 897d7dc6c7b..ab7567daf1a 100644 --- a/app/assets/javascripts/discourse/app/components/modal/create-account.js +++ b/app/assets/javascripts/discourse/app/components/modal/create-account.js @@ -4,6 +4,7 @@ import EmberObject, { action } from "@ember/object"; import { alias, notEmpty } from "@ember/object/computed"; import { inject as service } from "@ember/service"; import { isEmpty } from "@ember/utils"; +import { observes } from "@ember-decorators/object"; import $ from "jquery"; import { Promise } from "rsvp"; import LoginModal from "discourse/components/modal/login"; @@ -20,10 +21,7 @@ import UsernameValidation from "discourse/mixins/username-validation"; import { findAll } from "discourse/models/login-method"; import User from "discourse/models/user"; import discourseDebounce from "discourse-common/lib/debounce"; -import discourseComputed, { - bind, - observes, -} from "discourse-common/utils/decorators"; +import discourseComputed, { bind } from "discourse-common/utils/decorators"; import I18n from "discourse-i18n"; export default class CreateAccount extends Component.extend(