fix(FinaliseOwnershipPopup): fix declining ownership transfer

- the `ownershipDeclined` method was being called on an unexisting store
and the signala params were not being passed around
- some related SB page additions/cleanups
This commit is contained in:
Lukáš Tinkl 2024-04-17 15:01:55 +02:00 committed by Lukáš Tinkl
parent 5e33540307
commit 7ad4a917af
4 changed files with 7 additions and 13 deletions

View File

@ -93,11 +93,9 @@ SplitView {
font.bold: true
}
TextInput {
TextField {
id: communityNameText
text: "Doodles"
}
Label {
@ -105,7 +103,7 @@ SplitView {
font.bold: true
}
TextInput {
TextField {
id: communitySymbolText
text: "OWNDOO"
@ -116,7 +114,7 @@ SplitView {
font.bold: true
}
TextInput {
TextField {
id: tokenChainText
text: "Optimism"

View File

@ -236,14 +236,11 @@ StatusDialog {
components: [
RowLayout {
StatusIcon {
Layout.alignment: Qt.AlignVCenter
icon: "arrow-right"
color: Theme.palette.primaryColor1
}
StatusBaseText {
Layout.alignment: Qt.AlignVCenter
Layout.rightMargin: Style.current.padding
text: qsTr("Visit Community")

View File

@ -68,7 +68,6 @@ StatusDialog {
StatusButton {
text: qsTr("Mint %1 Owner token").arg(root.communityName)
type: StatusBaseButton.Type.Normal
onClicked: {
root.mintClicked()

View File

@ -41,7 +41,7 @@ QtObject {
signal openExternalLink(string link)
signal saveDomainToUnfurledWhitelist(string domain)
signal ownershipDeclined
signal ownershipDeclined(string communityId, string communityName)
property var activePopupComponents: []
@ -1109,9 +1109,9 @@ QtObject {
Connections {
target: root
onOwnershipDeclined: {
function onOwnershipDeclined(communityId: string, communityName: string) {
finalisePopup.close()
root.rootStore.communityTokensStore.ownershipDeclined(communityId, communityName)
root.communityTokensStore.ownershipDeclined(communityId, communityName)
}
}
}
@ -1122,7 +1122,7 @@ QtObject {
FinaliseOwnershipDeclinePopup {
destroyOnClose: true
onDeclineClicked: root.ownershipDeclined()
onDeclineClicked: root.ownershipDeclined(communityId, communityName)
}
},
// End of components related to transfer community ownership flow.