FIX: makes sidebar links respect drawer mode (#18918)
Clicking a link of the sidebar will now open the drawer and load the correct channel. This solution should correctly solve these cases: closing drawer, clicking sidebar channel, should open the drawer on correct channel visiting /chat then visiting / and clicking sidebar channel, should open full page chat on correct channel
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
import { module, test } from "qunit";
|
||||
import { getOwner } from "discourse-common/lib/get-owner";
|
||||
import { setupTest } from "ember-qunit";
|
||||
|
||||
module("Discourse Chat | Unit | Service | full-page-chat", function (hooks) {
|
||||
setupTest(hooks);
|
||||
|
||||
hooks.beforeEach(function () {
|
||||
this.fullPageChat = getOwner(this).lookup("service:full-page-chat");
|
||||
this.fullPageChat = this.owner.lookup("service:full-page-chat");
|
||||
});
|
||||
|
||||
hooks.afterEach(function () {
|
||||
|
||||
Reference in New Issue
Block a user