DEV: Find/replace deprecated decorators
This commit is contained in:
parent
150744ab20
commit
277346b097
|
@ -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")
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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"],
|
||||
|
|
|
@ -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({
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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, () => {
|
||||
|
|
|
@ -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"],
|
||||
|
|
|
@ -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: [] });
|
||||
|
||||
|
|
|
@ -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";
|
||||
|
||||
|
|
|
@ -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({
|
||||
|
|
Loading…
Reference in New Issue