Allow to delete downloaded content from popup

This commit is contained in:
saltrafael 2021-08-02 12:04:57 -03:00 committed by jessopb
parent 4f0c6030e1
commit c55978f9d6
2 changed files with 10 additions and 9 deletions

View file

@ -50,7 +50,7 @@ const select = (state, props) => {
hasClaimInCustom: makeSelectCollectionForIdHasClaimUrl(COLLECTIONS_CONSTS.FAVORITES_ID, contentPermanentUri)(state),
channelIsMuted: makeSelectChannelIsMuted(contentChannelUri)(state),
channelIsBlocked: makeSelectChannelIsBlocked(contentChannelUri)(state),
fileInfo: makeSelectFileInfoForUri(props.uri)(state),
fileInfo: makeSelectFileInfoForUri(contentPermanentUri)(state),
isSubscribed: makeSelectIsSubscribed(contentChannelUri, true)(state),
channelIsAdminBlocked: makeSelectChannelIsAdminBlocked(props.uri)(state),
isAdmin: selectHasAdminChannel(state),

View file

@ -378,6 +378,9 @@ function ClaimMenuList(props: Props) {
</div>
</MenuItem>
)}
</>
)}
{showDelete && (
<MenuItem className="comment__menu-option" onSelect={handleDelete}>
<div className="menu__link">
@ -390,8 +393,6 @@ function ClaimMenuList(props: Props) {
)}
</>
)}
</>
)}
<hr className="menu__separator" />
<MenuItem className="comment__menu-option" onSelect={handleCopyLink}>