15 lines
330 B
JavaScript
15 lines
330 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;
|
|
|
|
queryParams = ["messageId"];
|
|
|
|
@action
|
|
switchChannel(channel) {
|
|
this.chat.openChannel(channel);
|
|
}
|
|
}
|