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:
parent
5e33540307
commit
7ad4a917af
|
@ -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"
|
||||
|
|
|
@ -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")
|
||||
|
|
|
@ -68,7 +68,6 @@ StatusDialog {
|
|||
|
||||
StatusButton {
|
||||
text: qsTr("Mint %1 Owner token").arg(root.communityName)
|
||||
type: StatusBaseButton.Type.Normal
|
||||
|
||||
onClicked: {
|
||||
root.mintClicked()
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue