mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 22:36:24 +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.width: 20
|
||||||
icon.height: 20
|
icon.height: 20
|
||||||
icon.name: "qr"
|
icon.name: "qr"
|
||||||
onClicked: contentComponent.qrCodePopup.open()
|
onClicked: contentItem.qrCodePopup.open()
|
||||||
}
|
}
|
||||||
|
|
||||||
contentItem: Item {
|
contentItem: Item {
|
||||||
@ -251,14 +251,14 @@ StatusModal {
|
|||||||
type: StatusBaseButton.Type.Danger
|
type: StatusBaseButton.Type.Danger
|
||||||
onClicked: {
|
onClicked: {
|
||||||
if (isBlocked) {
|
if (isBlocked) {
|
||||||
contentComponent.unblockContactConfirmationDialog.contactName = userName;
|
contentItem.unblockContactConfirmationDialog.contactName = userName;
|
||||||
contentComponent.unblockContactConfirmationDialog.contactAddress = fromAuthor;
|
contentItem.unblockContactConfirmationDialog.contactAddress = fromAuthor;
|
||||||
contentComponent.unblockContactConfirmationDialog.open();
|
contentItem.unblockContactConfirmationDialog.open();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
ontentComponent.blockContactConfirmationDialog.contactName = userName;
|
ontentComponent.blockContactConfirmationDialog.contactName = userName;
|
||||||
contentComponent.blockContactConfirmationDialog.contactAddress = fromAuthor;
|
contentItem.blockContactConfirmationDialog.contactAddress = fromAuthor;
|
||||||
contentComponent.blockContactConfirmationDialog.open();
|
contentItem.blockContactConfirmationDialog.open();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -268,8 +268,8 @@ StatusModal {
|
|||||||
type: StatusBaseButton.Type.Danger
|
type: StatusBaseButton.Type.Danger
|
||||||
text: qsTr('Remove Contact')
|
text: qsTr('Remove Contact')
|
||||||
onClicked: {
|
onClicked: {
|
||||||
contentComponent.removeContactConfirmationDialog.parentPopup = popup;
|
contentItem.removeContactConfirmationDialog.parentPopup = popup;
|
||||||
contentComponent.removeContactConfirmationDialog.open();
|
contentItem.removeContactConfirmationDialog.open();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user