mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove Ember.Mixin to import @ember/object/mixin (#8269)
This commit is contained in:
committed by
Robin Ward
parent
e7eeb7c47f
commit
ba4b557114
@@ -1,7 +1,8 @@
|
||||
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
||||
import { popupAjaxError } from "discourse/lib/ajax-error";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
|
||||
export default Ember.Mixin.create(ModalFunctionality, {
|
||||
export default Mixin.create(ModalFunctionality, {
|
||||
reason: null,
|
||||
message: null,
|
||||
postEdit: null,
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
import DiscourseURL from "discourse/lib/url";
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
|
||||
export default Ember.Mixin.create({
|
||||
export default Mixin.create({
|
||||
queryParams: ["period"],
|
||||
period: "monthly",
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
import { categoryLinkHTML } from "discourse/helpers/category-link";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
|
||||
const CUSTOM_TYPES = [
|
||||
"bool",
|
||||
@@ -19,7 +20,7 @@ const CUSTOM_TYPES = [
|
||||
|
||||
const AUTO_REFRESH_ON_SAVE = ["logo", "logo_small", "large_icon"];
|
||||
|
||||
export default Ember.Mixin.create({
|
||||
export default Mixin.create({
|
||||
classNameBindings: [":row", ":setting", "overridden", "typeClass"],
|
||||
content: Ember.computed.alias("setting"),
|
||||
validationMessage: null,
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import computed from "ember-addons/ember-computed-decorators";
|
||||
import Mixin from '@ember/object/mixin';
|
||||
|
||||
export default Ember.Mixin.create({
|
||||
export default Mixin.create({
|
||||
@computed("value", "default")
|
||||
overridden(val, defaultVal) {
|
||||
if (val === null) val = "";
|
||||
|
||||
Reference in New Issue
Block a user