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,46 +132,23 @@ 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 text: "<- " + qsTr("Back to community")
spacing: 16 color: Theme.palette.baseColor1
font.pixelSize: 15
font.underline: true
// TODO: remove me when migration to new settings is done MouseArea {
StatusBaseText { anchors.fill: parent
Layout.alignment: Qt.AlignHCenter cursorShape: Qt.PointingHandCursor
text: qsTr("Open legacy popup (to be removed)") onClicked: root.backToCommunityClicked()
color: Theme.palette.baseColor1 hoverEnabled: true
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")
color: Theme.palette.baseColor1
font.pixelSize: 15
font.underline: true
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: root.backToCommunityClicked()
hoverEnabled: true
}
} }
} }
} }