DEV: Find/replace deprecated decorators

This commit is contained in:
Penar Musaraj 2020-02-19 11:56:45 -05:00
parent 7c2d265d69
commit 63ddf106a4
6 changed files with 6 additions and 12 deletions

View File

@ -1,5 +1,5 @@
import { popupAjaxError } from "discourse/lib/ajax-error";
import computed from "ember-addons/ember-computed-decorators";
import computed from "discourse-common/utils/decorators";
export default Ember.Component.extend({
tagName: "tr",

View File

@ -1,5 +1,5 @@
import showModal from "discourse/lib/show-modal";
import computed from "ember-addons/ember-computed-decorators";
import computed from "discourse-common/utils/decorators";
export default Ember.Controller.extend({
modalShowing: false,

View File

@ -5,7 +5,7 @@ import {
default as computed,
observes,
on
} from "ember-addons/ember-computed-decorators";
} from "discourse-common/utils/decorators";
export default Ember.Controller.extend(ModalFunctionality, {
@on("init")

View File

@ -1,9 +1,6 @@
import ModalFunctionality from "discourse/mixins/modal-functionality";
import { popupAjaxError } from "discourse/lib/ajax-error";
import {
default as computed,
on
} from "ember-addons/ember-computed-decorators";
import { default as computed, on } from "discourse-common/utils/decorators";
export default Ember.Controller.extend(ModalFunctionality, {
saveDisabled: false,

View File

@ -1,10 +1,7 @@
import ModalFunctionality from "discourse/mixins/modal-functionality";
import { ajax } from "discourse/lib/ajax";
import { popupAjaxError } from "discourse/lib/ajax-error";
import {
default as computed,
on
} from "ember-addons/ember-computed-decorators";
import { default as computed, on } from "discourse-common/utils/decorators";
export default Ember.Controller.extend(ModalFunctionality, {
@on("init")

View File

@ -3,7 +3,7 @@ import Category from "discourse/models/category";
import {
default as computed,
observes
} from "ember-addons/ember-computed-decorators";
} from "discourse-common/utils/decorators";
export default RestModel.extend({
available_filters: [