This commit includes: * Additions to message and channel serializers for threads * New route and controller for a single thread * JS route for thread pane * Extremely basic thread pane component * Additions to channel manager to deal with threads, and ChatThread JS model * Changes to chat publisher and existing JS to get new thread ID when message is created
21 lines
450 B
JavaScript
21 lines
450 B
JavaScript
import Component from "@glimmer/component";
|
|
import { action } from "@ember/object";
|
|
import { inject as service } from "@ember/service";
|
|
|
|
export default class ChatThreadPane extends Component {
|
|
@service siteSettings;
|
|
@service currentUser;
|
|
@service chat;
|
|
@service router;
|
|
|
|
channel = null;
|
|
thread = null;
|
|
|
|
@action
|
|
closeThread() {
|
|
return this.router.transitionTo("chat.channel", {
|
|
channelId: this.args.channel.id,
|
|
});
|
|
}
|
|
}
|