Merge pull request #358 from lbryio/publishing-fix

Publishing fix
This commit is contained in:
Jeremy Kauffman 2017-07-18 08:51:14 -04:00 committed by GitHub
commit 1d01dc8303
3 changed files with 9 additions and 10 deletions

View file

@ -25,6 +25,8 @@ Web UI version numbers should always match the corresponding version of LBRY App
* Fixed inappropriate text showing on searches
* Stop discover page from pushing jumping vertically while loading
* Restored feedback on claim amounts
* Fixed hiding price input when Free is checked on publish form
* Fixed hiding new identity fields on publish form
### Deprecated
*

View file

@ -93,6 +93,7 @@ class ChannelSection extends React.PureComponent {
"This LBC remains yours and the deposit can be undone at any time."
);
const channel = this.state.addingChannel ? "new" : this.props.channel;
const { fetchingChannels, channels = [] } = this.props;
let channelContent = [];
@ -102,7 +103,7 @@ class ChannelSection extends React.PureComponent {
type="select"
tabIndex="1"
onChange={this.handleChannelChange.bind(this)}
value={this.props.channel}
value={channel}
>
<option key="anonymous" value="anonymous">
{__("Anonymous")}
@ -137,9 +138,7 @@ class ChannelSection extends React.PureComponent {
<FormRow
label={__("Name")}
type="text"
onChange={event => {
this.handleNewChannelNameChange(event);
}}
onChange={this.handleNewChannelNameChange.bind(this)}
value={this.state.newChannelName}
/>
<FormRow

View file

@ -42,6 +42,7 @@ class PublishForm extends React.PureComponent {
submitting: false,
creatingChannel: false,
modal: null,
isFee: false,
};
}
@ -635,11 +636,8 @@ class PublishForm extends React.PureComponent {
label={__("Free")}
type="radio"
name="isFree"
value="1"
onChange={() => {
this.handleFeePrefChange(false);
}}
defaultChecked={!this.state.isFee}
onChange={() => this.handleFeePrefChange(false)}
checked={!this.state.isFee}
/>
<FormField
type="radio"
@ -648,7 +646,7 @@ class PublishForm extends React.PureComponent {
onChange={() => {
this.handleFeePrefChange(true);
}}
defaultChecked={this.state.isFee}
checked={this.state.isFee}
/>
<span className={!this.state.isFee ? "hidden" : ""}>
<FormField