limit tags, new channel link
This commit is contained in:
parent
259f51abd6
commit
ffa248a353
4 changed files with 15 additions and 7 deletions
|
@ -1260,7 +1260,6 @@
|
||||||
"Uncheck your email below if you want to stop receiving messages.": "Uncheck your email below if you want to stop receiving messages.",
|
"Uncheck your email below if you want to stop receiving messages.": "Uncheck your email below if you want to stop receiving messages.",
|
||||||
"Remove from Blocked List": "Remove from Blocked List",
|
"Remove from Blocked List": "Remove from Blocked List",
|
||||||
"Are you sure you want to remove this from the list?": "Are you sure you want to remove this from the list?",
|
"Are you sure you want to remove this from the list?": "Are you sure you want to remove this from the list?",
|
||||||
"Uncheck your email below if you want to stop receiving messages.": "Uncheck your email below if you want to stop receiving messages.",
|
|
||||||
"Cover": "Cover",
|
"Cover": "Cover",
|
||||||
"Url": "Url",
|
"Url": "Url",
|
||||||
"New Channel Advanced": "New Channel Advanced",
|
"New Channel Advanced": "New Channel Advanced",
|
||||||
|
@ -1271,5 +1270,13 @@
|
||||||
"Create Channel": "Create Channel",
|
"Create Channel": "Create Channel",
|
||||||
"This shoul de such a size": "This shoul de such a size",
|
"This shoul de such a size": "This shoul de such a size",
|
||||||
"Thumbnail This shoul de such a size": "Thumbnail This shoul de such a size",
|
"Thumbnail This shoul de such a size": "Thumbnail This shoul de such a size",
|
||||||
"Cover This shoul de such a size": "Cover This shoul de such a size"
|
"Cover This shoul de such a size": "Cover This shoul de such a size",
|
||||||
}
|
"CableTube Escape Artists": "CableTube Escape Artists",
|
||||||
|
"General": "General",
|
||||||
|
"MyAwesomeChannel": "MyAwesomeChannel",
|
||||||
|
"My Awesome Channel": "My Awesome Channel",
|
||||||
|
"Increasing your deposit can help your channel be discovered more easily.": "Increasing your deposit can help your channel be discovered more easily.",
|
||||||
|
"Editing @%channel%": "Editing @%channel%",
|
||||||
|
"This field cannot be changed.": "This field cannot be changed.",
|
||||||
|
"Delete Channel": "Delete Channel"
|
||||||
|
}
|
|
@ -13,6 +13,7 @@ import ClaimAbandonButton from 'component/claimAbandonButton';
|
||||||
import { MINIMUM_PUBLISH_BID, INVALID_NAME_ERROR, ESTIMATED_FEE } from 'constants/claim';
|
import { MINIMUM_PUBLISH_BID, INVALID_NAME_ERROR, ESTIMATED_FEE } from 'constants/claim';
|
||||||
import { Tabs, TabList, Tab, TabPanels, TabPanel } from 'component/common/tabs';
|
import { Tabs, TabList, Tab, TabPanels, TabPanel } from 'component/common/tabs';
|
||||||
import Card from 'component/common/card';
|
import Card from 'component/common/card';
|
||||||
|
const MAX_TAG_SELECT = 5;
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
claim: ChannelClaim,
|
claim: ChannelClaim,
|
||||||
|
@ -64,10 +65,10 @@ function ChannelForm(props: Props) {
|
||||||
createError,
|
createError,
|
||||||
openModal,
|
openModal,
|
||||||
} = props;
|
} = props;
|
||||||
const [params, setParams]: [any, (any) => void] = React.useState(getChannelParams());
|
|
||||||
const [nameError, setNameError] = React.useState(undefined);
|
const [nameError, setNameError] = React.useState(undefined);
|
||||||
const [bidError, setBidError] = React.useState('');
|
const [bidError, setBidError] = React.useState('');
|
||||||
const { claim_id: claimId } = claim || {};
|
const { claim_id: claimId } = claim || {};
|
||||||
|
const [params, setParams]: [any, (any) => void] = React.useState(getChannelParams());
|
||||||
const { channelName } = parseURI(uri);
|
const { channelName } = parseURI(uri);
|
||||||
const name = params.name;
|
const name = params.name;
|
||||||
const isNewChannel = !uri;
|
const isNewChannel = !uri;
|
||||||
|
@ -296,6 +297,7 @@ function ChannelForm(props: Props) {
|
||||||
<TagsSearch
|
<TagsSearch
|
||||||
suggestMature
|
suggestMature
|
||||||
disableAutoFocus
|
disableAutoFocus
|
||||||
|
limitSelect={MAX_TAG_SELECT}
|
||||||
tagsPassedIn={params.tags || []}
|
tagsPassedIn={params.tags || []}
|
||||||
label={__('Selected Tags')}
|
label={__('Selected Tags')}
|
||||||
onRemove={clickedTag => {
|
onRemove={clickedTag => {
|
||||||
|
|
|
@ -67,7 +67,6 @@ const Header = (props: Props) => {
|
||||||
signOut,
|
signOut,
|
||||||
syncError,
|
syncError,
|
||||||
openMobileNavigation,
|
openMobileNavigation,
|
||||||
openChannelCreate,
|
|
||||||
openSignOutModal,
|
openSignOutModal,
|
||||||
clearEmailEntry,
|
clearEmailEntry,
|
||||||
clearPasswordEntry,
|
clearPasswordEntry,
|
||||||
|
@ -221,7 +220,7 @@ const Header = (props: Props) => {
|
||||||
<Icon aria-hidden icon={ICONS.PUBLISH} />
|
<Icon aria-hidden icon={ICONS.PUBLISH} />
|
||||||
{__('Publish')}
|
{__('Publish')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
<MenuItem className="menu__link" onSelect={openChannelCreate}>
|
<MenuItem className="menu__link" onSelect={() => history.push(`/$/${PAGES.CHANNEL_NEW}`)}>
|
||||||
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
<Icon aria-hidden icon={ICONS.CHANNEL} />
|
||||||
{__('New Channel')}
|
{__('New Channel')}
|
||||||
</MenuItem>
|
</MenuItem>
|
||||||
|
|
|
@ -13,7 +13,7 @@ function ChannelNew(props: Props) {
|
||||||
return (
|
return (
|
||||||
<Page
|
<Page
|
||||||
noSideNavigation
|
noSideNavigation
|
||||||
backout={{ backFunction: () => history.goBack(), backTitle: __('Create Channel') }}
|
backout={{ backFunction: () => history.goBack(), title: __('Create Channel') }}
|
||||||
className="main--auth-page"
|
className="main--auth-page"
|
||||||
>
|
>
|
||||||
<ChannelEdit onDone={history.goBack} />
|
<ChannelEdit onDone={history.goBack} />
|
||||||
|
|
Loading…
Reference in a new issue