mirror of
https://github.com/discourse/discourse.git
synced 2025-05-25 19:29:34 +08:00
REFACTOR: Remove Ember.Component
global variable
Use imports instead.
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import Component from "@ember/component";
|
||||
import { ajax } from "discourse/lib/ajax";
|
||||
import {
|
||||
default as computed,
|
||||
@ -8,7 +9,7 @@ import {
|
||||
export const keepAliveDuration = 10000;
|
||||
export const bufferTime = 3000;
|
||||
|
||||
export default Ember.Component.extend({
|
||||
export default Component.extend({
|
||||
// Passed in variables
|
||||
action: null,
|
||||
post: null,
|
||||
|
@ -1,3 +1,4 @@
|
||||
import Component from "@ember/component";
|
||||
import {
|
||||
default as computed,
|
||||
on
|
||||
@ -9,7 +10,7 @@ import {
|
||||
|
||||
const MB_GET_LAST_MESSAGE = -2;
|
||||
|
||||
export default Ember.Component.extend({
|
||||
export default Component.extend({
|
||||
topicId: null,
|
||||
presenceUsers: null,
|
||||
|
||||
|
Reference in New Issue
Block a user