Commit 643b02c0 authored by George Goldberg's avatar George Goldberg

MM-13351: Fix edit channel header when empty. (#2165)

parent f79a5820
...@@ -10,6 +10,7 @@ import {memoizeResult} from 'mattermost-redux/utils/helpers'; ...@@ -10,6 +10,7 @@ import {memoizeResult} from 'mattermost-redux/utils/helpers';
import 'bootstrap'; import 'bootstrap';
import EditChannelHeaderModal from 'components/edit_channel_header_modal';
import Markdown from 'components/markdown'; import Markdown from 'components/markdown';
import PopoverListMembers from 'components/popover_list_members'; import PopoverListMembers from 'components/popover_list_members';
import SearchBar from 'components/search_bar'; import SearchBar from 'components/search_bar';
...@@ -225,6 +226,21 @@ export default class ChannelHeader extends React.PureComponent { ...@@ -225,6 +226,21 @@ export default class ChannelHeader extends React.PureComponent {
} }
} }
showEditChannelHeaderModal = () => {
if (this.refs.headerOverlay) {
this.refs.headerOverlay.hide();
}
const {actions, channel} = this.props;
const modalData = {
modalId: ModalIdentifiers.EDIT_CHANNEL_HEADER,
dialogType: EditChannelHeaderModal,
dialogProps: {channel},
};
actions.openModal(modalData);
}
render() { render() {
const { const {
teamId, teamId,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment