From c3f4d667736a5a7151b5292a57d99ed9b0c3793c Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Wed, 14 Aug 2019 19:34:14 -0400 Subject: [PATCH] fix: delete button for blobs Show delete as soon as any blobs are saved. --- src/ui/component/fileActions/view.jsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/ui/component/fileActions/view.jsx b/src/ui/component/fileActions/view.jsx index d15420fcb..ce3ac5dc5 100644 --- a/src/ui/component/fileActions/view.jsx +++ b/src/ui/component/fileActions/view.jsx @@ -16,9 +16,7 @@ type Props = { class FileActions extends React.PureComponent { 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 ( {showDelete && (