Fix: show delete button for own claims, not only downloaded ones #2147

Merged
tzarebczan merged 2 commits from fix-delete-button into master 2018-12-16 17:57:50 +01:00
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>