mirror of
https://github.com/discourse/discourse-chat-integration.git
synced 2025-03-06 17:59:29 +00:00
DEV: Find/replace deprecated decorators
This commit is contained in:
parent
7c2d265d69
commit
63ddf106a4
@ -1,5 +1,5 @@
|
|||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
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({
|
export default Ember.Component.extend({
|
||||||
tagName: "tr",
|
tagName: "tr",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import showModal from "discourse/lib/show-modal";
|
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({
|
export default Ember.Controller.extend({
|
||||||
modalShowing: false,
|
modalShowing: false,
|
||||||
|
@ -5,7 +5,7 @@ import {
|
|||||||
default as computed,
|
default as computed,
|
||||||
observes,
|
observes,
|
||||||
on
|
on
|
||||||
} from "ember-addons/ember-computed-decorators";
|
} from "discourse-common/utils/decorators";
|
||||||
|
|
||||||
export default Ember.Controller.extend(ModalFunctionality, {
|
export default Ember.Controller.extend(ModalFunctionality, {
|
||||||
@on("init")
|
@on("init")
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
import {
|
import { default as computed, on } from "discourse-common/utils/decorators";
|
||||||
default as computed,
|
|
||||||
on
|
|
||||||
} from "ember-addons/ember-computed-decorators";
|
|
||||||
|
|
||||||
export default Ember.Controller.extend(ModalFunctionality, {
|
export default Ember.Controller.extend(ModalFunctionality, {
|
||||||
saveDisabled: false,
|
saveDisabled: false,
|
||||||
|
@ -1,10 +1,7 @@
|
|||||||
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
||||||
import { ajax } from "discourse/lib/ajax";
|
import { ajax } from "discourse/lib/ajax";
|
||||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||||
import {
|
import { default as computed, on } from "discourse-common/utils/decorators";
|
||||||
default as computed,
|
|
||||||
on
|
|
||||||
} from "ember-addons/ember-computed-decorators";
|
|
||||||
|
|
||||||
export default Ember.Controller.extend(ModalFunctionality, {
|
export default Ember.Controller.extend(ModalFunctionality, {
|
||||||
@on("init")
|
@on("init")
|
||||||
|
@ -3,7 +3,7 @@ import Category from "discourse/models/category";
|
|||||||
import {
|
import {
|
||||||
default as computed,
|
default as computed,
|
||||||
observes
|
observes
|
||||||
} from "ember-addons/ember-computed-decorators";
|
} from "discourse-common/utils/decorators";
|
||||||
|
|
||||||
export default RestModel.extend({
|
export default RestModel.extend({
|
||||||
available_filters: [
|
available_filters: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user