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:
Pascal Precht 2021-09-07 15:31:48 +02:00 committed by RichΛrd
parent 51c4d8c64e
commit 6e9f14c6ac
1 changed files with 8 additions and 8 deletions

View File

@ -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();
}
},