DEV: Find/replace deprecated decorators

This commit is contained in:
Penar Musaraj 2020-02-19 11:57:59 -05:00
parent 150744ab20
commit 277346b097
11 changed files with 11 additions and 14 deletions

View File

@ -1,4 +1,4 @@
import { observes } from "ember-addons/ember-computed-decorators";
import { observes } from "discourse-common/utils/decorators";
export default Ember.Component.extend({
@observes("hideSchema")

View File

@ -1,4 +1,4 @@
import { default as computed } from "ember-addons/ember-computed-decorators";
import { default as computed } from "discourse-common/utils/decorators";
export default Ember.Component.extend({
tagName: "ol",

View File

@ -1,4 +1,4 @@
import { on } from "ember-addons/ember-computed-decorators";
import { on } from "discourse-common/utils/decorators";
export default Ember.Component.extend({
classNameBindings: [":schema-table", "open"],

View File

@ -1,7 +1,7 @@
import {
default as computed,
observes
} from "ember-addons/ember-computed-decorators";
} from "discourse-common/utils/decorators";
import debounce from "discourse/lib/debounce";
export default Ember.Component.extend({

View File

@ -2,7 +2,7 @@ import {
default as computed,
on,
observes
} from "ember-addons/ember-computed-decorators";
} from "discourse-common/utils/decorators";
export default Ember.Component.extend({
fileInput: null,

View File

@ -1,4 +1,4 @@
import { default as computed } from "ember-addons/ember-computed-decorators";
import { default as computed } from "discourse-common/utils/decorators";
// import Category from 'discourse/models/category';
const Category = Discourse.Category;

View File

@ -1,7 +1,7 @@
import { ajax } from "discourse/lib/ajax";
import Badge from "discourse/models/badge";
import { getOwner } from "discourse-common/lib/get-owner";
import { default as computed } from "ember-addons/ember-computed-decorators";
import { default as computed } from "discourse-common/utils/decorators";
function randomIdShort() {
return "xxxxxxxx".replace(/[xy]/g, () => {

View File

@ -1,7 +1,4 @@
import {
default as computed,
on
} from "ember-addons/ember-computed-decorators";
import { default as computed, on } from "discourse-common/utils/decorators";
export default Ember.Component.extend({
classNames: ["share-report"],

View File

@ -5,7 +5,7 @@ import { ajax } from "discourse/lib/ajax";
import {
default as computed,
observes
} from "ember-addons/ember-computed-decorators";
} from "discourse-common/utils/decorators";
const NoQuery = Query.create({ name: "No queries", fake: true, group_ids: [] });

View File

@ -1,4 +1,4 @@
import { default as computed } from "ember-addons/ember-computed-decorators";
import { default as computed } from "discourse-common/utils/decorators";
import ModalFunctionality from "discourse/mixins/modal-functionality";
import { popupAjaxError } from "discourse/lib/ajax-error";

View File

@ -2,7 +2,7 @@ import {
default as computed,
on,
observes
} from "ember-addons/ember-computed-decorators";
} from "discourse-common/utils/decorators";
import RestModel from "discourse/models/rest";
const Query = RestModel.extend({