mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 14:26:34 +00:00
fix(ProfilePopup): ensure modal is working again
Due to a breaking change in StatusQ, this modal caused a reference error. This commit fixes it. Fixes #3400
This commit is contained in:
parent
51c4d8c64e
commit
6e9f14c6ac
@ -67,7 +67,7 @@ StatusModal {
|
||||
icon.width: 20
|
||||
icon.height: 20
|
||||
icon.name: "qr"
|
||||
onClicked: contentComponent.qrCodePopup.open()
|
||||
onClicked: contentItem.qrCodePopup.open()
|
||||
}
|
||||
|
||||
contentItem: Item {
|
||||
@ -251,14 +251,14 @@ StatusModal {
|
||||
type: StatusBaseButton.Type.Danger
|
||||
onClicked: {
|
||||
if (isBlocked) {
|
||||
contentComponent.unblockContactConfirmationDialog.contactName = userName;
|
||||
contentComponent.unblockContactConfirmationDialog.contactAddress = fromAuthor;
|
||||
contentComponent.unblockContactConfirmationDialog.open();
|
||||
contentItem.unblockContactConfirmationDialog.contactName = userName;
|
||||
contentItem.unblockContactConfirmationDialog.contactAddress = fromAuthor;
|
||||
contentItem.unblockContactConfirmationDialog.open();
|
||||
return;
|
||||
}
|
||||
ontentComponent.blockContactConfirmationDialog.contactName = userName;
|
||||
contentComponent.blockContactConfirmationDialog.contactAddress = fromAuthor;
|
||||
contentComponent.blockContactConfirmationDialog.open();
|
||||
contentItem.blockContactConfirmationDialog.contactAddress = fromAuthor;
|
||||
contentItem.blockContactConfirmationDialog.open();
|
||||
}
|
||||
},
|
||||
|
||||
@ -268,8 +268,8 @@ StatusModal {
|
||||
type: StatusBaseButton.Type.Danger
|
||||
text: qsTr('Remove Contact')
|
||||
onClicked: {
|
||||
contentComponent.removeContactConfirmationDialog.parentPopup = popup;
|
||||
contentComponent.removeContactConfirmationDialog.open();
|
||||
contentItem.removeContactConfirmationDialog.parentPopup = popup;
|
||||
contentItem.removeContactConfirmationDialog.open();
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user