DEV: Import ember ENV instead of Ember.testing (#8305)

This commit is contained in:
Mark VanLandingham
2019-11-07 11:20:35 -06:00
committed by GitHub
parent 60a235d128
commit 9ffdbf912f
32 changed files with 75 additions and 37 deletions

View File

@ -2,6 +2,7 @@ import { gt, equal } from "@ember/object/computed";
import Component from "@ember/component";
import { THEMES, COMPONENTS } from "admin/models/theme";
import { default as computed } from "ember-addons/ember-computed-decorators";
import { getOwner } from "@ember/application";
export default Component.extend({
THEMES: THEMES,
@ -70,7 +71,7 @@ export default Component.extend({
}
},
navigateToTheme(theme) {
Ember.getOwner(this)
getOwner(this)
.lookup("router:main")
.transitionTo("adminCustomizeThemes.show", theme);
}