DEV: Remove uses of deprecated Ember.copy and Copyable (#8978)

This commit is contained in:
Jarek Radosz 2020-03-02 20:24:05 +01:00 committed by GitHub
parent 76a06dfa03
commit fedd8e3e3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ export default Controller.extend({
},
copy() {
var newColorScheme = Ember.copy(this.model, true);
const newColorScheme = this.model.copy();
newColorScheme.set(
"name",
I18n.t("admin.customize.colors.copy_name_prefix") +

View File

@ -26,7 +26,7 @@ export default Controller.extend({
actions: {
newColorSchemeWithBase(baseKey) {
const base = this.baseColorSchemes.findBy("base_scheme_id", baseKey);
const newColorScheme = Ember.copy(base, true);
const newColorScheme = base.copy();
newColorScheme.setProperties({
name: I18n.t("admin.customize.colors.new_name"),
base_scheme_id: base.get("base_scheme_id")

View File

@ -4,7 +4,7 @@ import { ajax } from "discourse/lib/ajax";
import ColorSchemeColor from "admin/models/color-scheme-color";
import EmberObject from "@ember/object";
const ColorScheme = EmberObject.extend(Ember.Copyable, {
const ColorScheme = EmberObject.extend({
init() {
this._super(...arguments);