Update view.jsx

This commit is contained in:
Thomas Zarebczan 2019-11-17 13:32:31 -05:00 committed by Sean Yesmunt
parent 0a2aa6db6d
commit 8257004316

View file

@ -26,10 +26,11 @@ function ModalRemoveFile(props: Props) {
<Modal isOpen title="Remove File" contentLabel={__('Confirm File Remove')} type="custom" onAborted={closeModal}> <Modal isOpen title="Remove File" contentLabel={__('Confirm File Remove')} type="custom" onAborted={closeModal}>
<section> <section>
<p> <p>
{__("Are you sure you'd like to remove")} <cite>{`"${title}"`}</cite> {__('from the LBRY app?')} {__("Are you sure you'd like to remove")} <cite>{`"${title}"`}</cite> {__('from LBRY?')}
</p> </p>
</section> </section>
<Form onSubmit={() => deleteFile(uri, deleteChecked, claimIsMine ? abandonChecked : false)}> <Form onSubmit={() => deleteFile(uri, deleteChecked, claimIsMine ? abandonChecked : false)}>
{!IS_WEB && (
<FormField <FormField
name="file_delete" name="file_delete"
label={__('Delete this file from my computer')} label={__('Delete this file from my computer')}
@ -37,6 +38,7 @@ function ModalRemoveFile(props: Props) {
checked={deleteChecked} checked={deleteChecked}
onChange={() => setDeleteChecked(!deleteChecked)} onChange={() => setDeleteChecked(!deleteChecked)}
/> />
)}
{claimIsMine && ( {claimIsMine && (
<div> <div>
@ -47,11 +49,13 @@ function ModalRemoveFile(props: Props) {
checked={abandonChecked} checked={abandonChecked}
onChange={() => setAbandonChecked(!abandonChecked)} onChange={() => setAbandonChecked(!abandonChecked)}
/> />
{abandonChecked === false && ( {abandonChecked === true && <p className="error-text">This action is permanent and cannot be undone.</p>}
<p className="error-text">
This file is removed from your publishes area and you can&apos;t remove the deposit from the claim page {abandonChecked === false && deleteChecked && !IS_WEB && (
anymore <p>This file will be removed from your Library and Downloads folder.</p>
</p> )}
{!deleteChecked && !IS_WEB && (
<p>This file removed from your Library but will remain in your Downloads folder.</p>
)} )}
</div> </div>
)} )}