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
// TODO: remove me when migration to new settings is done
onOpenLegacyPopupClicked: Global.openCommunityProfilePopupRequested(root.rootStore, community, chatCommunitySectionModule)
Connections {
target: root.rootStore
function onGoToMembershipRequestsPage() {

View File

@ -67,7 +67,6 @@ StatusSectionLayout {
}
signal backToCommunityClicked
signal openLegacyPopupClicked // TODO: remove me when migration to new settings is done
//navigate to a specific section and subsection
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.
ColumnLayout {
id: footer
StatusBaseText {
objectName: "communitySettingsBackToCommunityButton"
anchors {
bottom: parent.bottom
bottomMargin: 16
horizontalCenter: parent.horizontalCenter
}
width: parent.width
spacing: 16
text: "<- " + qsTr("Back to community")
color: Theme.palette.baseColor1
font.pixelSize: 15
font.underline: true
// 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")
color: Theme.palette.baseColor1
font.pixelSize: 15
font.underline: true
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: root.backToCommunityClicked()
hoverEnabled: true
}
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onClicked: root.backToCommunityClicked()
hoverEnabled: true
}
}
}