use ifdef comments for file-delete text
This commit is contained in:
parent
8257004316
commit
17ca93ab30
1 changed files with 13 additions and 13 deletions
|
@ -30,15 +30,15 @@ function ModalRemoveFile(props: Props) {
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<Form onSubmit={() => deleteFile(uri, deleteChecked, claimIsMine ? abandonChecked : false)}>
|
<Form onSubmit={() => deleteFile(uri, deleteChecked, claimIsMine ? abandonChecked : false)}>
|
||||||
{!IS_WEB && (
|
{/* @if TARGET='app' */}
|
||||||
<FormField
|
<FormField
|
||||||
name="file_delete"
|
name="file_delete"
|
||||||
label={__('Delete this file from my computer')}
|
label={__('Delete this file from my computer')}
|
||||||
type="checkbox"
|
type="checkbox"
|
||||||
checked={deleteChecked}
|
checked={deleteChecked}
|
||||||
onChange={() => setDeleteChecked(!deleteChecked)}
|
onChange={() => setDeleteChecked(!deleteChecked)}
|
||||||
/>
|
/>
|
||||||
)}
|
{/* @endif */}
|
||||||
|
|
||||||
{claimIsMine && (
|
{claimIsMine && (
|
||||||
<div>
|
<div>
|
||||||
|
@ -51,12 +51,12 @@ function ModalRemoveFile(props: Props) {
|
||||||
/>
|
/>
|
||||||
{abandonChecked === true && <p className="error-text">This action is permanent and cannot be undone.</p>}
|
{abandonChecked === true && <p className="error-text">This action is permanent and cannot be undone.</p>}
|
||||||
|
|
||||||
{abandonChecked === false && deleteChecked && !IS_WEB && (
|
{/* @if TARGET='app' */}
|
||||||
|
{abandonChecked === false && deleteChecked && (
|
||||||
<p>This file will be removed from your Library and Downloads folder.</p>
|
<p>This file will be removed from your Library and Downloads folder.</p>
|
||||||
)}
|
)}
|
||||||
{!deleteChecked && !IS_WEB && (
|
{!deleteChecked && <p>This file removed from your Library but will remain in your Downloads folder.</p>}
|
||||||
<p>This file removed from your Library but will remain in your Downloads folder.</p>
|
{/* @endif */}
|
||||||
)}
|
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
<div className="card__actions">
|
<div className="card__actions">
|
||||||
|
|
Loading…
Reference in a new issue