DEV: Fix deprecations (getOwner and router:main) (#157)
This commit is contained in:
parent
bef115d760
commit
ca8501aaf5
|
@ -408,6 +408,6 @@ export default Controller.extend({
|
||||||
@action
|
@action
|
||||||
returnToList() {
|
returnToList() {
|
||||||
this.set("selectedTopic", null);
|
this.set("selectedTopic", null);
|
||||||
getOwner(this).lookup("router:main").transitionTo("docs");
|
getOwner(this).lookup("service:router").transitionTo("docs");
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
import { getOwner } from "@ember/application";
|
||||||
import { setupTest } from "ember-qunit";
|
import { setupTest } from "ember-qunit";
|
||||||
import { module, test } from "qunit";
|
import { module, test } from "qunit";
|
||||||
import { getOwner } from "discourse-common/lib/get-owner";
|
|
||||||
|
|
||||||
module("Unit | Controller | docs-index", function (hooks) {
|
module("Unit | Controller | docs-index", function (hooks) {
|
||||||
setupTest(hooks);
|
setupTest(hooks);
|
||||||
|
|
Loading…
Reference in New Issue