discourse/plugins/chat/assets/javascripts/discourse/components/chat-channel-about-view.js
Roman Rizzi 0a5f548635
DEV: Move discourse-chat to the core repo. (#18776)
As part of this move, we are also renaming `discourse-chat` to `chat`.
2022-11-02 10:41:30 -03:00

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);
});
}
}