parent
8332a685c4
commit
7274e6156e
|
@ -241,7 +241,7 @@ SettingsContentBase {
|
||||||
assetsModel: chatStore.assetsModel
|
assetsModel: chatStore.assetsModel
|
||||||
collectiblesModel: chatStore.collectiblesModel
|
collectiblesModel: chatStore.collectiblesModel
|
||||||
|
|
||||||
onJoined: chatStore.requestToJoinCommunityWithAuthentication(communityIntroDialog.communityId, root.rootStore.userProfileInst.name, JSON.stringify(sharedAddresses), airdropAddress)
|
onJoined: chatStore.requestToJoinCommunityWithAuthentication(communityIntroDialog.communityId, root.rootStore.userProfileInst.name, sharedAddresses, airdropAddress)
|
||||||
onCancelMembershipRequest: root.rootStore.cancelPendingRequest(communityIntroDialog.communityId)
|
onCancelMembershipRequest: root.rootStore.cancelPendingRequest(communityIntroDialog.communityId)
|
||||||
|
|
||||||
onSharedAddressesUpdated: {
|
onSharedAddressesUpdated: {
|
||||||
|
|
|
@ -234,7 +234,13 @@ QtObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
function requestToJoinCommunityWithAuthentication(communityId, ensName, addressesToShare = [], airdropAddress = "") {
|
function requestToJoinCommunityWithAuthentication(communityId, ensName, addressesToShare = [], airdropAddress = "") {
|
||||||
communitiesModuleInst.requestToJoinCommunityWithAuthenticationWithSharedAddresses(communityId, ensName, JSON.stringify(addressesToShare), airdropAddress)
|
communitiesModuleInst.requestToJoinCommunityWithAuthenticationWithSharedAddresses(
|
||||||
|
communityId, ensName, JSON.stringify(addressesToShare), airdropAddress)
|
||||||
|
}
|
||||||
|
|
||||||
|
function editSharedAddressesWithAuthentication(communityId, addressesToShare = [], airdropAddress = "") {
|
||||||
|
communitiesModuleInst.editSharedAddressesWithAuthentication(
|
||||||
|
communityId, JSON.stringify(addressesToShare), airdropAddress)
|
||||||
}
|
}
|
||||||
|
|
||||||
function updatePermissionsModel(communityId, sharedAddresses) {
|
function updatePermissionsModel(communityId, sharedAddresses) {
|
||||||
|
|
|
@ -530,7 +530,7 @@ QtObject {
|
||||||
}
|
}
|
||||||
assetsModel: root.rootStore.assetsModel
|
assetsModel: root.rootStore.assetsModel
|
||||||
collectiblesModel: root.rootStore.collectiblesModel
|
collectiblesModel: root.rootStore.collectiblesModel
|
||||||
onJoined: root.rootStore.requestToJoinCommunityWithAuthentication(communityIntroDialog.communityId, communityIntroDialog.name, JSON.stringify(sharedAddresses), airdropAddress)
|
onJoined: root.rootStore.requestToJoinCommunityWithAuthentication(communityIntroDialog.communityId, communityIntroDialog.name, sharedAddresses, airdropAddress)
|
||||||
onCancelMembershipRequest: root.rootStore.cancelPendingRequest(communityIntroDialog.communityId)
|
onCancelMembershipRequest: root.rootStore.cancelPendingRequest(communityIntroDialog.communityId)
|
||||||
Connections {
|
Connections {
|
||||||
target: root.communitiesStore.communitiesModuleInst
|
target: root.communitiesStore.communitiesModuleInst
|
||||||
|
@ -720,8 +720,10 @@ QtObject {
|
||||||
assetsModel: chatStore.assetsModel
|
assetsModel: chatStore.assetsModel
|
||||||
collectiblesModel: chatStore.collectiblesModel
|
collectiblesModel: chatStore.collectiblesModel
|
||||||
|
|
||||||
onSaveSelectedAddressesClicked: console.warn("!!! FIXME implement saving the shared & airdrop addresses for the community",
|
onSharedAddressesChanged: root.rootStore.updatePermissionsModel(
|
||||||
JSON.stringify(sharedAddresses), airdropAddress)
|
editSharedAddressesPopup.communityId, sharedAddresses)
|
||||||
|
onSaveSelectedAddressesClicked: root.rootStore.editSharedAddressesWithAuthentication(
|
||||||
|
editSharedAddressesPopup.communityId, sharedAddresses, airdropAddress)
|
||||||
onClosed: destroy()
|
onClosed: destroy()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue