This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/plugins/chat/assets/javascripts/discourse/controllers/chat-channel-info-about.js
Martin Brennan 31f6811a93
FIX: Change wording from title -> name in channel about page (#19889)
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.
2023-01-18 09:13:33 +10:00

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