From cd7ccd833db81cc472e83acc2fcbf18de5ff636a Mon Sep 17 00:00:00 2001 From: Alexandra Betouni <31625338+alexandraB99@users.noreply.github.com> Date: Fri, 5 May 2023 15:38:26 +0300 Subject: [PATCH] [contacts]: updated remove contact popup Closes #10499 --- ui/imports/shared/views/ProfileDialogView.qml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/ui/imports/shared/views/ProfileDialogView.qml b/ui/imports/shared/views/ProfileDialogView.qml index b38c1f144b..08493e2da8 100644 --- a/ui/imports/shared/views/ProfileDialogView.qml +++ b/ui/imports/shared/views/ProfileDialogView.qml @@ -257,13 +257,18 @@ Pane { ConfirmationDialog { id: removeContactConfirmationDialog - header.title: qsTr("Remove contact '%1'").arg(d.mainDisplayName) - confirmationText: qsTr("This will remove the user as a contact. Please confirm.") + header.title: qsTr("Remove '%1' as a contact").arg(d.mainDisplayName) + confirmationText: qsTr("This will mean that you and '%1' will no longer be able to send direct messages to each other. You will need to send them a new Contact Request in order to message again. All previous direct messages between you and '%1' will be retained in read-only mode.").arg(d.mainDisplayName) + showCancelButton: true + cancelBtnType: "" onConfirmButtonClicked: { root.contactsStore.removeContact(root.publicKey) close() d.reload() } + onCancelButtonClicked: { + removeContactConfirmationDialog.close(); + } } ConfirmationDialog {