From ad4476dfd6176596e9cb80797ceeb88196e81adf Mon Sep 17 00:00:00 2001 From: Baltazar Gomez Date: Wed, 30 Aug 2017 18:57:50 -0600 Subject: [PATCH 1/2] fix #467 Use source when no file_path is provided --- ui/js/component/publishForm/view.jsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/js/component/publishForm/view.jsx b/ui/js/component/publishForm/view.jsx index 4ce8039f8..fd0886935 100644 --- a/ui/js/component/publishForm/view.jsx +++ b/ui/js/component/publishForm/view.jsx @@ -47,6 +47,7 @@ class PublishForm extends React.PureComponent { modal: null, isFee: false, customUrl: false, + source: null, }; } @@ -115,9 +116,13 @@ class PublishForm extends React.PureComponent { ? { channel_name: this.state.channel } : {}), }; + + const { source } = this.state; if (this.refs.file.getValue() !== "") { publishArgs.file_path = this.refs.file.getValue(); + } else if (source) { + publishArgs.sources = source; } const success = claim => {}; @@ -257,7 +262,8 @@ class PublishForm extends React.PureComponent { } handlePrefillClicked() { - const claimInfo = this.myClaimInfo(); + const claimInfo = this.myClaimInfo(); + const { source } = claimInfo.value.stream; const { license, licenseUrl, @@ -276,6 +282,7 @@ class PublishForm extends React.PureComponent { meta_nsfw: nsfw, prefillDone: true, bid: claimInfo.amount, + source, }; if (license == this._defaultCopyrightNotice) { From 91a9c43ef4739eaf04adf657bef334177cabde0f Mon Sep 17 00:00:00 2001 From: Baltazar Gomez Date: Wed, 30 Aug 2017 19:00:43 -0600 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 816cdf601..c64b3ed21 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 issues with small prices (#461) * Fixed issues with negative values not being stopped by app on entry (#441) + * Fixed source file error when editing existing claim (#467) ### Deprecated