Skip to content

A platform for community discussion. Free, open, simple.

DEV: Resolve `observes` deprecation in create-account (#24217)

David Taylor08e2ee3ec1df
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(