This commit is expanding on previous work making everything chat working through an URL. Improves drawer templates to be all URLs Implements some kind of router for the drawer Removes few remaining actions for opening channels
17 lines
366 B
JavaScript
17 lines
366 B
JavaScript
import Component from "@ember/component";
|
|
import { computed } from "@ember/object";
|
|
import { inject as service } from "@ember/service";
|
|
|
|
export default class SidebarChannels extends Component {
|
|
@service chat;
|
|
@service router;
|
|
|
|
tagName = "";
|
|
toggleSection = null;
|
|
|
|
@computed("chat.userCanChat")
|
|
get isDisplayed() {
|
|
return this.chat.userCanChat;
|
|
}
|
|
}
|