DEV: Resolve poll plugin deprecation (#22330)

When using native class syntax, `observes` must be imported from `@ember-decorators/object`
This commit is contained in:
David Taylor 2023-06-28 17:53:45 +01:00 committed by GitHub
parent d6a82f1034
commit ed70b16db6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@ import { gt, or } from "@ember/object/computed";
import Controller from "@ember/controller";
import EmberObject, { action } from "@ember/object";
import { next } from "@ember/runloop";
import discourseComputed, { observes } from "discourse-common/utils/decorators";
import discourseComputed from "discourse-common/utils/decorators";
import { observes } from "@ember-decorators/object";
import ModalFunctionality from "discourse/mixins/modal-functionality";
import I18n from "I18n";