mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 13:47:47 +08:00
DEV: Import ember ENV instead of Ember.testing (#8305)
This commit is contained in:

committed by
GitHub

parent
60a235d128
commit
9ffdbf912f
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user