do file remove too

This commit is contained in:
zeppi 2021-07-07 10:21:17 -04:00 committed by jessopb
parent 60384772af
commit a422e857e3
2 changed files with 8 additions and 10 deletions

View file

@ -32,7 +32,7 @@ function ModalRemoveFile(props: Props) {
title={__('Remove File')}
subtitle={
<I18nMessage tokens={{ title: <cite>{`"${title}"`}</cite> }}>
Are you sure you'd like to remove %title% from LBRY?
Are you sure you'd like to remove %title%?
</I18nMessage>
}
body={
@ -55,7 +55,7 @@ function ModalRemoveFile(props: Props) {
<I18nMessage
tokens={{ lbc: <LbcSymbol prefix={__('reclaim %amount%', { amount: claim.amount })} /> }}
>
Abandon on blockchain (%lbc%)
Remove from blockchain (%lbc%)
</I18nMessage>
}
type="checkbox"
@ -63,7 +63,7 @@ function ModalRemoveFile(props: Props) {
onChange={() => setAbandonChecked(!abandonChecked)}
/>
{abandonChecked === true && (
<p className="help error__text">{__('This action is permanent and cannot be undone.')}</p>
<p className="help error__text">{__('This action is permanent and cannot be undone')}</p>
)}
{/* @if TARGET='app' */}
@ -86,7 +86,7 @@ function ModalRemoveFile(props: Props) {
<Button
button="primary"
label={isAbandoning ? __('Removing...') : __('OK')}
disabled={isAbandoning}
disabled={isAbandoning || !(deleteChecked || abandonChecked)}
onClick={() => deleteFile(uri, deleteChecked, claimIsMine ? abandonChecked : false)}
/>
<Button button="link" label={__('Cancel')} onClick={closeModal} />

View file

@ -50,8 +50,8 @@ export default function ModalRevokeClaim(props: Props) {
<p>{__('Are you sure you want to remove this boost?')}</p>
<p>
<I18nMessage tokens={{ lbc: <LbcSymbol /> }}>
These Credits are permanently yours and this boost can be removed at any time. Removing this boost will reduce
discoverability and return %lbc% to your spendable balance.
These Credits are permanently yours and this boost can be removed at any time. Removing this boost will
reduce discoverability and return %lbc% to your spendable balance.
</I18nMessage>
</p>
</React.Fragment>
@ -71,12 +71,10 @@ export default function ModalRevokeClaim(props: Props) {
return (
<React.Fragment>
<p>
{__(
"This will permanently remove your channel. Content published under this channel will be orphaned."
)}
{__('This will permanently remove your channel. Content published under this channel will be orphaned.')}
</p>
<p>{__('Are you sure? Type %name% to confirm that you wish to remove the channel.', { name })}</p>
<FormField type={'text'} onChange={e => setChannelName(e.target.value)} />
<FormField type={'text'} onChange={(e) => setChannelName(e.target.value)} />
</React.Fragment>
);
}