feat(CommunityOwnership): Removed old flow

Removed old transfer ownership flows.
This commit is contained in:
Noelia 2023-09-13 16:42:25 +02:00 committed by Noelia
parent c97e9c4ffc
commit 4d22d8d56f
4 changed files with 0 additions and 66 deletions

View File

@ -18,7 +18,6 @@ Column {
property string headerImageSource: ""
property var community
signal transferOwnershipButtonClicked()
signal leaveButtonClicked()
signal copyToClipboard(string link)
@ -62,15 +61,6 @@ Column {
bottomPadding: 8
}
StatusListItem {
anchors.horizontalCenter: parent.horizontalCenter
visible: root.community.memberRole === Constants.memberRole.owner
title: qsTr("Transfer ownership")
asset.name: "exchange"
type: StatusListItem.Type.Secondary
onClicked: root.transferOwnershipButtonClicked()
}
StatusListItem {
anchors.horizontalCenter: parent.horizontalCenter
visible: root.community.memberRole !== Constants.memberRole.owner

View File

@ -59,10 +59,6 @@ StatusModal {
headerImageSource: root.community.image
community: root.community
onTransferOwnershipButtonClicked: Global.openPopup(transferOwnershiproot, {
privateKey: communitySectionModule.exportCommunity(root.community.id),
store: root.store
})
onLeaveButtonClicked: {
root.close();
root.community.spectated ? communitySectionModule.leaveCommunity()
@ -73,13 +69,6 @@ StatusModal {
}
}
}
Component {
id: transferOwnershiproot
TransferOwnershipPopup {
destroyOnClose: true
}
}
}
leftButtons: [

View File

@ -470,26 +470,6 @@ Item {
}
}
} // Loader
Loader {
active: root.communityData.memberRole === Constants.memberRole.owner &&
(!localAccountSensitiveSettings.hiddenCommunityBackUpBanners ||
!localAccountSensitiveSettings.hiddenCommunityBackUpBanners.includes(communityData.id))
width: parent.width
height: item.height
sourceComponent: Component {
BackUpCommuntyBannerPanel {
id: backupBanner
communityId: communityData.id
onBackupButtonClicked: {
Global.openPopup(transferOwnershipPopup, {
privateKey: communitySectionModule.exportCommunity(communityData.id),
store: root.store
})
}
}
}
} // Loader
} // Column
background: Item {
@ -593,19 +573,4 @@ Item {
icon: StandardIcon.Critical
standardButtons: StandardButton.Ok
}
Component {
id: transferOwnershipPopup
TransferOwnershipPopup {
anchors.centerIn: parent
onClosed: {
let hiddenBannerIds = localAccountSensitiveSettings.hiddenCommunityBackUpBanners || []
if (hiddenBannerIds.includes(root.store.activeCommunity.id)) {
return
}
hiddenBannerIds.push(root.store.activeCommunity.id)
localAccountSensitiveSettings.hiddenCommunityBackUpBanners = hiddenBannerIds
}
}
}
}

View File

@ -592,16 +592,6 @@ StatusSectionLayout {
standardButtons: StandardButton.Ok
}
Component {
id: transferOwnershipPopup
TransferOwnershipPopup {
anchors.centerIn: parent
store: root.rootStore
onClosed: destroy()
}
}
Component {
id: noPermissionsPopupCmp