Skip to content

Commit

Permalink
Fix #862 - Add email address to delete dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
maxxcrawford committed Jun 16, 2021
1 parent 236ad23 commit ce7e0e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion privaterelay/locales/en-US/app.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,9 @@ modal-delete-headline = Permanently delete this alias?
# Variables:
# $attrs (string) - specific attributes added to HTML element
# $email (string) - User email address
modal-delete-warning-recovery-html = Once you delete this alias, it cannot be recovered.
{ -brand-name-firefox-relay } will no longer forward messages sent to <span { $attrs }></span>, including messages that allow you to reset lost passwords.
{ -brand-name-firefox-relay } will no longer forward messages sent to <span { $attrs }>{ $email }</span>, including messages that allow you to reset lost passwords.
modal-delete-warning-upgrade = If you use this alias to log in to sites you care about,
you should update your login with a different email address before you delete this one.
modal-delete-confirmation = Yes, I want to delete this alias.
Expand Down
2 changes: 1 addition & 1 deletion privaterelay/templates/includes/modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<div class="modal modal-content drop-shadow-light">
<h2 class="modal-headline">{% ftlmsg 'modal-delete-headline' %}</h2>
<span class="alias-to-delete demi"></span>
<p class="modal-message">{% ftlmsg 'modal-delete-warning-recovery-html' attrs='class="alias-to-delete"' %}</p>
<p class="modal-message">{% ftlmsg 'modal-delete-warning-recovery-html' attrs='class="alias-to-delete"' email=request.user.email %}</p>
<p class="warning-text delete-tip modal-message">{% ftlmsg 'modal-delete-warning-upgrade' %}</p>
<div class="flx flx-row checkbox-wrapper">
<input type="checkbox" class="checkbox delete-modal" />
Expand Down

0 comments on commit ce7e0e1

Please sign in to comment.