chore(CommunitySettings): Remove old legacy community popup

Fixes: #9913
This commit is contained in:
Boris Melnik 2023-03-21 15:40:42 +03:00 committed by Jonathan Rainville
parent bb6e87deec
commit 7e4419d239
2 changed files with 12 additions and 38 deletions

View File

@ -136,8 +136,6 @@ StackLayout {
onBackToCommunityClicked: root.currentIndex = 0 onBackToCommunityClicked: root.currentIndex = 0
// TODO: remove me when migration to new settings is done
onOpenLegacyPopupClicked: Global.openCommunityProfilePopupRequested(root.rootStore, community, chatCommunitySectionModule)
Connections { Connections {
target: root.rootStore target: root.rootStore
function onGoToMembershipRequestsPage() { function onGoToMembershipRequestsPage() {

View File

@ -67,7 +67,6 @@ StatusSectionLayout {
} }
signal backToCommunityClicked signal backToCommunityClicked
signal openLegacyPopupClicked // TODO: remove me when migration to new settings is done
//navigate to a specific section and subsection //navigate to a specific section and subsection
function goTo(section: int, subSection: int) { function goTo(section: int, subSection: int) {
@ -133,35 +132,13 @@ StatusSectionLayout {
} }
} }
// TODO: remove me when migration to new settings is done. Only keep back button and anchor to it. StatusBaseText {
ColumnLayout { objectName: "communitySettingsBackToCommunityButton"
id: footer
anchors { anchors {
bottom: parent.bottom bottom: parent.bottom
bottomMargin: 16 bottomMargin: 16
horizontalCenter: parent.horizontalCenter
} }
width: parent.width
spacing: 16
// TODO: remove me when migration to new settings is done
StatusBaseText {
Layout.alignment: Qt.AlignHCenter
text: qsTr("Open legacy popup (to be removed)")
color: Theme.palette.baseColor1
font.pixelSize: 10
font.underline: true
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: root.openLegacyPopupClicked()
}
}
StatusBaseText {
objectName: "communitySettingsBackToCommunityButton"
Layout.alignment: Qt.AlignHCenter
text: "<- " + qsTr("Back to community") text: "<- " + qsTr("Back to community")
color: Theme.palette.baseColor1 color: Theme.palette.baseColor1
font.pixelSize: 15 font.pixelSize: 15
@ -175,7 +152,6 @@ StatusSectionLayout {
} }
} }
} }
}
centerPanel: Loader { centerPanel: Loader {
id: centerPanelContentLoader id: centerPanelContentLoader