mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 02:23:09 +08:00
20 lines
487 B
JavaScript
20 lines
487 B
JavaScript
import Component from "@ember/component";
|
|
import { action } from "@ember/object";
|
|
import { inject as service } from "@ember/service";
|
|
|
|
export default class ChatChannelAboutView extends Component {
|
|
@service chat;
|
|
tagName = "";
|
|
channel = null;
|
|
onEditChatChannelTitle = null;
|
|
onEditChatChannelDescription = null;
|
|
isLoading = false;
|
|
|
|
@action
|
|
afterMembershipToggle() {
|
|
this.chat.forceRefreshChannels().then(() => {
|
|
this.chat.openChannel(this.channel);
|
|
});
|
|
}
|
|
}
|