Merge pull request #2147 from lbryio/fix-delete-button

Fix: show delete button for own claims, not only downloaded ones
This commit is contained in:
Sean Yesmunt 2018-12-16 11:57:49 -05:00 committed by GitHub
commit ab7df057fb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View file

@ -9,6 +9,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Changed
### Fixed
* Show delete button on users own claims ([#2147](https://github.com/lbryio/lbry-desktop/pull/2147))
## [0.26.1] - 2018-12-14
### Fixed
* Channel subscribe button on search page ([#2146](https://github.com/lbryio/lbry-desktop/pull/2146))
* Close modal after redeeming reward code ([#2146](https://github.com/lbryio/lbry-desktop/pull/2146))

View file

@ -20,7 +20,7 @@ type Props = {
class FileActions extends React.PureComponent<Props> {
render() {
const { fileInfo, uri, openModal, claimIsMine, claimId } = this.props;
const showDelete = fileInfo && Object.keys(fileInfo).length > 0;
const showDelete = (claimIsMine || (fileInfo && Object.keys(fileInfo).length > 0)) ;
return (
<React.Fragment>