We refer to the channel name rather than title elsewhere (including the new channel modal), so we should be consistent. Title is an internal abstraction, since DM channels cannot have names (currently). Also change the name field on channel edit to a input type="text" rather than a textarea, since we don't want a huge input here.
21 lines
550 B
JavaScript
21 lines
550 B
JavaScript
import Controller from "@ember/controller";
|
|
import { action } from "@ember/object";
|
|
import ModalFunctionality from "discourse/mixins/modal-functionality";
|
|
import showModal from "discourse/lib/show-modal";
|
|
|
|
export default class ChatChannelInfoAboutController extends Controller.extend(
|
|
ModalFunctionality
|
|
) {
|
|
@action
|
|
onEditChatChannelName() {
|
|
showModal("chat-channel-edit-name", { model: this.model });
|
|
}
|
|
|
|
@action
|
|
onEditChatChannelDescription() {
|
|
showModal("chat-channel-edit-description", {
|
|
model: this.model,
|
|
});
|
|
}
|
|
}
|