From 4d22d8d56f8c0891f3f96dcb2127ef006c676fd9 Mon Sep 17 00:00:00 2001 From: Noelia Date: Wed, 13 Sep 2023 16:42:25 +0200 Subject: [PATCH] feat(CommunityOwnership): Removed old flow Removed old transfer ownership flows. --- .../panels/ProfilePopupOverviewPanel.qml | 10 ------ .../popups/CommunityProfilePopup.qml | 11 ------ .../Communities/views/CommunityColumnView.qml | 35 ------------------- .../views/CommunitySettingsView.qml | 10 ------ 4 files changed, 66 deletions(-) diff --git a/ui/app/AppLayouts/Communities/panels/ProfilePopupOverviewPanel.qml b/ui/app/AppLayouts/Communities/panels/ProfilePopupOverviewPanel.qml index 25fe61f303..77a29cfd1e 100644 --- a/ui/app/AppLayouts/Communities/panels/ProfilePopupOverviewPanel.qml +++ b/ui/app/AppLayouts/Communities/panels/ProfilePopupOverviewPanel.qml @@ -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 diff --git a/ui/app/AppLayouts/Communities/popups/CommunityProfilePopup.qml b/ui/app/AppLayouts/Communities/popups/CommunityProfilePopup.qml index 4e169eb0ca..f7ddcf9b49 100644 --- a/ui/app/AppLayouts/Communities/popups/CommunityProfilePopup.qml +++ b/ui/app/AppLayouts/Communities/popups/CommunityProfilePopup.qml @@ -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: [ diff --git a/ui/app/AppLayouts/Communities/views/CommunityColumnView.qml b/ui/app/AppLayouts/Communities/views/CommunityColumnView.qml index 4818435299..9f394bc6d0 100644 --- a/ui/app/AppLayouts/Communities/views/CommunityColumnView.qml +++ b/ui/app/AppLayouts/Communities/views/CommunityColumnView.qml @@ -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 - } - } - } } diff --git a/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml b/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml index ee7c701a34..fe8b4ddc1e 100644 --- a/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml +++ b/ui/app/AppLayouts/Communities/views/CommunitySettingsView.qml @@ -592,16 +592,6 @@ StatusSectionLayout { standardButtons: StandardButton.Ok } - Component { - id: transferOwnershipPopup - - TransferOwnershipPopup { - anchors.centerIn: parent - store: root.rootStore - onClosed: destroy() - } - } - Component { id: noPermissionsPopupCmp