Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
mattermost-webapp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
sysadmin
mattermost
mattermost-webapp
Commits
643b02c0
Commit
643b02c0
authored
Dec 11, 2018
by
George Goldberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MM-13351: Fix edit channel header when empty. (#2165)
parent
f79a5820
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
components/channel_header/channel_header.js
components/channel_header/channel_header.js
+16
-0
No files found.
components/channel_header/channel_header.js
View file @
643b02c0
...
...
@@ -10,6 +10,7 @@ import {memoizeResult} from 'mattermost-redux/utils/helpers';
import
'
bootstrap
'
;
import
EditChannelHeaderModal
from
'
components/edit_channel_header_modal
'
;
import
Markdown
from
'
components/markdown
'
;
import
PopoverListMembers
from
'
components/popover_list_members
'
;
import
SearchBar
from
'
components/search_bar
'
;
...
...
@@ -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
()
{
const
{
teamId
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment