Skip to content

Commit

Permalink
Account deletion, note about merged accounts
Browse files Browse the repository at this point in the history
  • Loading branch information
miko committed Oct 9, 2023
1 parent ae08334 commit 9a6c866
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 19 deletions.
1 change: 1 addition & 0 deletions static/app-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2952,6 +2952,7 @@
"Remove content and send deletion request" : "Remove content and send deletion request",
"Remove content" : "Remove content",
"IMPORTANT: this donation is sent without a comment. If you want to include a comment, click the $ next to the comment input area.": "IMPORTANT: this donation is sent without a comment. If you want to include a comment, click the $ next to the comment input area.",
"Note: If some other Odysee account is merged with this one, the merged content will be removed from both accounts.": "Note: If some other Odysee account is merged with this one, the merged content will be removed from both accounts.",

"--end--": "--end--"
}
48 changes: 29 additions & 19 deletions ui/modal/modalRemoveAccount/view.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,25 +42,35 @@ export default function ModalRemoveAccount(props: Props) {
<Card
title={__('Delete account')}
subtitle={
isBusy
? ''
: status === 'error_occurred'
? __(
'Sorry, there may have been an issue when wiping the account and/or sending the deletion request. Please check back in few minutes, and try again. If the issue persists please contact help@odysee.com for possible next steps.'
)
: isPendingDeletion && isWalletEmpty && !buttonClicked
? __('Account has already been queued for deletion.')
: isPendingDeletion && !isWalletEmpty && !buttonClicked
? __(
'Account has already been queued for deletion. If you still have content/credits on the account which you want removed, click "Remove content".'
)
: !isPendingDeletion && !buttonClicked
? __(
"Remove all content from the account and send a deletion request to Odysee. Removing the content is a permanent action and can't be undone."
)
: __(
'Account has been queued for deletion, and content has been removed. You will receive an email confirmation once the deletion is completed. It may take few minutes for content to completely disappear.'
)
<>
{ isBusy
? ''
: status === 'error_occurred'
? __(
'Sorry, there may have been an issue when wiping the account and/or sending the deletion request. Please check back in few minutes, and try again. If the issue persists please contact help@odysee.com for possible next steps.'
)
: isPendingDeletion && isWalletEmpty && !buttonClicked
? __('Account has already been queued for deletion.')
: isPendingDeletion && !isWalletEmpty && !buttonClicked
? __(
'Account has already been queued for deletion. If you still have content/credits on the account which you want removed, click "Remove content".'
)
: !isPendingDeletion && !buttonClicked
? __(
"Remove all content from the account and send a deletion request to Odysee. Removing the content is a permanent action and can't be undone."
)
: __(
'Account has been queued for deletion, and content has been removed. You will receive an email confirmation once the deletion is completed. It may take few minutes for content to completely disappear.'
)
}
{ showButton && (
<p className="form-field__help">
{__(
'Note: If some other Odysee account is merged with this one, the merged content will be removed from both accounts.'
)}
</p>
)}
</>
}
className="confirm__wrapper"
actions={
Expand Down

0 comments on commit 9a6c866

Please sign in to comment.