From 0bd65bce473f5d19d225e491d3b5534e63a02e59 Mon Sep 17 00:00:00 2001 From: Daniela Narvaez Date: Wed, 30 May 2018 23:01:19 -0300 Subject: [PATCH 1/3] Fix claim ID on when reporting a claim. --- src/renderer/component/fileActions/index.js | 1 + src/renderer/component/fileActions/view.jsx | 5 ++--- src/renderer/page/file/view.jsx | 6 ++++-- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/renderer/component/fileActions/index.js b/src/renderer/component/fileActions/index.js index 1ee1cffe9..bcadf6581 100644 --- a/src/renderer/component/fileActions/index.js +++ b/src/renderer/component/fileActions/index.js @@ -12,6 +12,7 @@ const select = (state, props) => ({ /* availability check is disabled due to poor performance, TBD if it dies forever or requires daemon fix */ costInfo: makeSelectCostInfoForUri(props.uri)(state), claimIsMine: makeSelectClaimIsMine(props.uri)(state), + claimId: props.claimId, }); const perform = dispatch => ({ diff --git a/src/renderer/component/fileActions/view.jsx b/src/renderer/component/fileActions/view.jsx index 4ab110fca..6ca72f9bb 100644 --- a/src/renderer/component/fileActions/view.jsx +++ b/src/renderer/component/fileActions/view.jsx @@ -11,6 +11,7 @@ type FileInfo = { type Props = { uri: string, + claimId: string, openModal: ({ id: string }, { uri: string }) => void, claimIsMine: boolean, fileInfo: FileInfo, @@ -19,9 +20,7 @@ type Props = { class FileActions extends React.PureComponent { render() { - const { fileInfo, uri, openModal, claimIsMine, vertical } = this.props; - - const claimId = fileInfo ? fileInfo.claim_id : ''; + const { fileInfo, uri, openModal, claimIsMine, vertical, claimId } = this.props; const showDelete = fileInfo && Object.keys(fileInfo).length > 0; return ( diff --git a/src/renderer/page/file/view.jsx b/src/renderer/page/file/view.jsx index e8392ff6c..5c5a5414a 100644 --- a/src/renderer/page/file/view.jsx +++ b/src/renderer/page/file/view.jsx @@ -160,7 +160,9 @@ class FilePage extends React.Component {

{title}

- {isRewardContent && } + {isRewardContent && ( + + )}
@@ -216,7 +218,7 @@ class FilePage extends React.Component {
- +
From a5457e083a0abd4a53760ad5b0975db9f5398ad8 Mon Sep 17 00:00:00 2001 From: Daniela Narvaez Date: Fri, 1 Jun 2018 00:11:34 -0300 Subject: [PATCH 2/3] Remove selector property as is already being passed in from another component --- src/renderer/component/fileActions/index.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/renderer/component/fileActions/index.js b/src/renderer/component/fileActions/index.js index bcadf6581..1ee1cffe9 100644 --- a/src/renderer/component/fileActions/index.js +++ b/src/renderer/component/fileActions/index.js @@ -12,7 +12,6 @@ const select = (state, props) => ({ /* availability check is disabled due to poor performance, TBD if it dies forever or requires daemon fix */ costInfo: makeSelectCostInfoForUri(props.uri)(state), claimIsMine: makeSelectClaimIsMine(props.uri)(state), - claimId: props.claimId, }); const perform = dispatch => ({ From 5c6d403535acf1d9177b243152ab7589df11d431 Mon Sep 17 00:00:00 2001 From: Daniela Narvaez Date: Fri, 1 Jun 2018 00:22:43 -0300 Subject: [PATCH 3/3] Updated changelog. --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ff500fb76..13e298ddd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -37,6 +37,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/). * Fix notification modals when reward is claimed ([#1436])(https://github.com/lbryio/lbry-app/issues/1436) and ([#1407])(https://github.com/lbryio/lbry-app/issues/1407) * Fix disabled cards(grayed out) ([#1466])(https://github.com/lbryio/lbry-app/issues/1466) * Fix markdown render ([#1179](https://github.com/lbryio/lbry-app/issues/1179)) + * Fix claim ID being null when reporting a claim that was not previously download ([issue#1512](https://github.com/lbryio/lbry-app/issues/1512)) ([PR#1530](https://github.com/lbryio/lbry-app/pull/1530)) ## [0.21.3] - 2018-04-23