slightly improve channel edits
This commit is contained in:
parent
d4d150bb39
commit
c154db73fd
3 changed files with 10 additions and 6 deletions
|
@ -30,7 +30,4 @@ const perform = dispatch => ({
|
|||
updateChannel: params => dispatch(doUpdateChannel(params)),
|
||||
});
|
||||
|
||||
export default connect(
|
||||
select,
|
||||
perform
|
||||
)(ChannelPage);
|
||||
export default connect(select, perform)(ChannelPage);
|
||||
|
|
|
@ -103,6 +103,7 @@ function ChannelForm(props: Props) {
|
|||
updateChannel(params);
|
||||
setEditing(false);
|
||||
};
|
||||
|
||||
// TODO clear and bail after submit
|
||||
return (
|
||||
<section className={'card--section'}>
|
||||
|
@ -176,7 +177,7 @@ function ChannelForm(props: Props) {
|
|||
|
||||
<TagsSearch
|
||||
suggestMature
|
||||
disabledAutoFocus
|
||||
disableAutoFocus
|
||||
tagsPassedIn={params.tags || []}
|
||||
label={__('Tags Selected')}
|
||||
onRemove={clickedTag => {
|
||||
|
|
|
@ -237,7 +237,13 @@ function ChannelPage(props: Props) {
|
|||
)}
|
||||
<h1 className="channel__title">{title || '@' + channelName}</h1>
|
||||
{channelIsMine && !editing && (
|
||||
<Button button="alt" title={__('Edit')} onClick={() => setEditing(!editing)} icon={ICONS.EDIT} />
|
||||
<Button
|
||||
button="alt"
|
||||
title={__('Edit')}
|
||||
onClick={() => setEditing(!editing)}
|
||||
icon={ICONS.EDIT}
|
||||
iconSize={28}
|
||||
/>
|
||||
)}
|
||||
<div className="channel__meta">
|
||||
<span>
|
||||
|
|
Loading…
Reference in a new issue