fix: delete button for blobs
Show delete as soon as any blobs are saved.
This commit is contained in:
parent
f6858beb68
commit
c3f4d66773
1 changed files with 1 additions and 3 deletions
|
@ -16,9 +16,7 @@ type Props = {
|
|||
class FileActions extends React.PureComponent<Props> {
|
||||
render() {
|
||||
const { fileInfo, uri, openModal, claimIsMine, claimId } = this.props;
|
||||
const showDelete =
|
||||
claimIsMine ||
|
||||
(fileInfo && (fileInfo.written_bytes > 0 || fileInfo.blobs_completed === fileInfo.blobs_in_stream));
|
||||
const showDelete = claimIsMine || (fileInfo && (fileInfo.written_bytes > 0 || fileInfo.blobs_completed > 0));
|
||||
return (
|
||||
<React.Fragment>
|
||||
{showDelete && (
|
||||
|
|
Loading…
Reference in a new issue