Merge pull request #519 from lbryio/btzr/source

fix #467
This commit is contained in:
Jeremy Kauffman 2017-08-31 09:11:07 -04:00 committed by GitHub
commit 73750bb18c
2 changed files with 9 additions and 1 deletions

View file

@ -43,6 +43,7 @@ Web UI version numbers should always match the corresponding version of LBRY App
* Fixed video sizing for squat videos (#492) * Fixed video sizing for squat videos (#492)
* Fixed issues with small prices (#461) * Fixed issues with small prices (#461)
* Fixed issues with negative values not being stopped by app on entry (#441) * Fixed issues with negative values not being stopped by app on entry (#441)
* Fixed source file error when editing existing claim (#467)
### Deprecated ### Deprecated

View file

@ -47,6 +47,7 @@ class PublishForm extends React.PureComponent {
modal: null, modal: null,
isFee: false, isFee: false,
customUrl: false, customUrl: false,
source: null,
}; };
} }
@ -115,9 +116,13 @@ class PublishForm extends React.PureComponent {
? { channel_name: this.state.channel } ? { channel_name: this.state.channel }
: {}), : {}),
}; };
const { source } = this.state;
if (this.refs.file.getValue() !== "") { if (this.refs.file.getValue() !== "") {
publishArgs.file_path = this.refs.file.getValue(); publishArgs.file_path = this.refs.file.getValue();
} else if (source) {
publishArgs.sources = source;
} }
const success = claim => {}; const success = claim => {};
@ -257,7 +262,8 @@ class PublishForm extends React.PureComponent {
} }
handlePrefillClicked() { handlePrefillClicked() {
const claimInfo = this.myClaimInfo(); const claimInfo = this.myClaimInfo();
const { source } = claimInfo.value.stream;
const { const {
license, license,
licenseUrl, licenseUrl,
@ -276,6 +282,7 @@ class PublishForm extends React.PureComponent {
meta_nsfw: nsfw, meta_nsfw: nsfw,
prefillDone: true, prefillDone: true,
bid: claimInfo.amount, bid: claimInfo.amount,
source,
}; };
if (license == this._defaultCopyrightNotice) { if (license == this._defaultCopyrightNotice) {