This work will allow us to have an {{outlet}} chat.channel route and use it for threads as a sidepanel.
18 lines
386 B
JavaScript
18 lines
386 B
JavaScript
import Controller from "@ember/controller";
|
|
import { action } from "@ember/object";
|
|
import { inject as service } from "@ember/service";
|
|
|
|
export default class ChatChannelController extends Controller {
|
|
@service chat;
|
|
|
|
targetMessageId = null;
|
|
|
|
// Backwards-compatibility
|
|
queryParams = ["messageId"];
|
|
|
|
@action
|
|
switchChannel(channel) {
|
|
this.chat.openChannel(channel);
|
|
}
|
|
}
|