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
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
TextInput {
|
TextField {
|
||||||
id: communityNameText
|
id: communityNameText
|
||||||
|
|
||||||
text: "Doodles"
|
text: "Doodles"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
|
@ -105,7 +103,7 @@ SplitView {
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
TextInput {
|
TextField {
|
||||||
id: communitySymbolText
|
id: communitySymbolText
|
||||||
|
|
||||||
text: "OWNDOO"
|
text: "OWNDOO"
|
||||||
|
@ -116,7 +114,7 @@ SplitView {
|
||||||
font.bold: true
|
font.bold: true
|
||||||
}
|
}
|
||||||
|
|
||||||
TextInput {
|
TextField {
|
||||||
id: tokenChainText
|
id: tokenChainText
|
||||||
|
|
||||||
text: "Optimism"
|
text: "Optimism"
|
||||||
|
|
|
@ -236,14 +236,11 @@ StatusDialog {
|
||||||
components: [
|
components: [
|
||||||
RowLayout {
|
RowLayout {
|
||||||
StatusIcon {
|
StatusIcon {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
|
||||||
|
|
||||||
icon: "arrow-right"
|
icon: "arrow-right"
|
||||||
color: Theme.palette.primaryColor1
|
color: Theme.palette.primaryColor1
|
||||||
}
|
}
|
||||||
|
|
||||||
StatusBaseText {
|
StatusBaseText {
|
||||||
Layout.alignment: Qt.AlignVCenter
|
|
||||||
Layout.rightMargin: Style.current.padding
|
Layout.rightMargin: Style.current.padding
|
||||||
|
|
||||||
text: qsTr("Visit Community")
|
text: qsTr("Visit Community")
|
||||||
|
|
|
@ -68,7 +68,6 @@ StatusDialog {
|
||||||
|
|
||||||
StatusButton {
|
StatusButton {
|
||||||
text: qsTr("Mint %1 Owner token").arg(root.communityName)
|
text: qsTr("Mint %1 Owner token").arg(root.communityName)
|
||||||
type: StatusBaseButton.Type.Normal
|
|
||||||
|
|
||||||
onClicked: {
|
onClicked: {
|
||||||
root.mintClicked()
|
root.mintClicked()
|
||||||
|
|
|
@ -41,7 +41,7 @@ QtObject {
|
||||||
|
|
||||||
signal openExternalLink(string link)
|
signal openExternalLink(string link)
|
||||||
signal saveDomainToUnfurledWhitelist(string domain)
|
signal saveDomainToUnfurledWhitelist(string domain)
|
||||||
signal ownershipDeclined
|
signal ownershipDeclined(string communityId, string communityName)
|
||||||
|
|
||||||
property var activePopupComponents: []
|
property var activePopupComponents: []
|
||||||
|
|
||||||
|
@ -1109,9 +1109,9 @@ QtObject {
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root
|
target: root
|
||||||
onOwnershipDeclined: {
|
function onOwnershipDeclined(communityId: string, communityName: string) {
|
||||||
finalisePopup.close()
|
finalisePopup.close()
|
||||||
root.rootStore.communityTokensStore.ownershipDeclined(communityId, communityName)
|
root.communityTokensStore.ownershipDeclined(communityId, communityName)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1122,7 +1122,7 @@ QtObject {
|
||||||
FinaliseOwnershipDeclinePopup {
|
FinaliseOwnershipDeclinePopup {
|
||||||
destroyOnClose: true
|
destroyOnClose: true
|
||||||
|
|
||||||
onDeclineClicked: root.ownershipDeclined()
|
onDeclineClicked: root.ownershipDeclined(communityId, communityName)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// End of components related to transfer community ownership flow.
|
// End of components related to transfer community ownership flow.
|
||||||
|
|
Loading…
Reference in New Issue