DEV: Fix deprecations (getOwner and router:main) (#157)

This commit is contained in:
Jarek Radosz 2023-11-24 11:33:19 +01:00 committed by GitHub
parent bef115d760
commit ca8501aaf5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -408,6 +408,6 @@ export default Controller.extend({
@action
returnToList() {
this.set("selectedTopic", null);
getOwner(this).lookup("router:main").transitionTo("docs");
getOwner(this).lookup("service:router").transitionTo("docs");
},
});

View File

@ -1,6 +1,6 @@
import { getOwner } from "@ember/application";
import { setupTest } from "ember-qunit";
import { module, test } from "qunit";
import { getOwner } from "discourse-common/lib/get-owner";
module("Unit | Controller | docs-index", function (hooks) {
setupTest(hooks);