Add confirmation sheet after reseting username link and QR code
This commit is contained in:
parent
374a5d0382
commit
b1bbc8be62
@ -639,6 +639,15 @@ class UsernameLinkPresentQRCodeViewController: OWSTableViewController2 {
|
||||
self.usernameChangeDelegate?.usernameStateDidChange(
|
||||
newState: latestUsernameState
|
||||
)
|
||||
}.done(on: schedulers.main) { _ in
|
||||
OWSActionSheets.showActionSheet(
|
||||
message: OWSLocalizedString(
|
||||
"USERNAME_LINK_QR_CODE_VIEW_RESET_SUCCESSFUL",
|
||||
comment: "Text presenting an action sheet notifying the user their QR code and link were reset."
|
||||
),
|
||||
fromViewController: self,
|
||||
dismissalDelegate: self
|
||||
)
|
||||
}.catch(on: schedulers.main) { [weak self] error in
|
||||
guard let self else { return }
|
||||
|
||||
|
||||
@ -7697,7 +7697,10 @@
|
||||
"USERNAME_LINK_QR_CODE_VIEW_RESET_BUTTON_TITLE" = "Reset";
|
||||
|
||||
/* A message explaining what will happen if the user resets their QR code. */
|
||||
"USERNAME_LINK_QR_CODE_VIEW_RESET_SHEET_MESSAGE" = "If you reset your QR code, your existing QR code and link will no longer work.";
|
||||
"USERNAME_LINK_QR_CODE_VIEW_RESET_SHEET_MESSAGE" = "If you reset your QR code and link, your existing QR code and link will no longer work.";
|
||||
|
||||
/* Text presenting an action sheet notifying the user their QR code and link were reset. */
|
||||
"USERNAME_LINK_QR_CODE_VIEW_RESET_SUCCESSFUL" = "Your QR code and link have been reset and a new QR code and link has been created.";
|
||||
|
||||
/* Title for a button to share your username link QR code. Lowercase styling is intentional. */
|
||||
"USERNAME_LINK_QR_CODE_VIEW_SHARE_BUTTON" = "share";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user