From b433b23245458654db81ef3d69456955804b65b1 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Tue, 20 Apr 2021 13:30:16 -0400 Subject: [PATCH] chore(CommunityProfile): comment notifications and remove Delete code Fixes #2272 --- .../CommunityProfilePopupOverview.qml | 60 +++++++------------ 1 file changed, 23 insertions(+), 37 deletions(-) diff --git a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml index 734c6c0d7f..8deb313328 100644 --- a/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml +++ b/ui/app/AppLayouts/Chat/CommunityComponents/CommunityProfilePopupOverview.qml @@ -158,28 +158,29 @@ Item { // } // } - CommunityPopupButton { - id: notificationsBtn - //% "Notifications" - label: qsTrId("notifications") - iconName: "notifications" - width: parent.width - txtColor: Style.current.textColor - type: globalSettings.theme === Universal.Dark ? "secondary" : "primary" - onClicked: function(){ - notificationSwitch.checked = !notificationSwitch.checked - } - StatusSwitch { - id: notificationSwitch - anchors.right: parent.right - anchors.rightMargin: Style.current.padding - anchors.verticalCenter: parent.verticalCenter - onCheckedChanged: function(value) { - // TODO: enable/disable notifications - console.log("TODO: toggle") - } - } - } + // TODO re-add when this is supported +// CommunityPopupButton { +// id: notificationsBtn +// //% "Notifications" +// label: qsTrId("notifications") +// iconName: "notifications" +// width: parent.width +// txtColor: Style.current.textColor +// type: globalSettings.theme === Universal.Dark ? "secondary" : "primary" +// onClicked: function(){ +// notificationSwitch.checked = !notificationSwitch.checked +// } +// StatusSwitch { +// id: notificationSwitch +// anchors.right: parent.right +// anchors.rightMargin: Style.current.padding +// anchors.verticalCenter: parent.verticalCenter +// onCheckedChanged: function(value) { +// // TODO: enable/disable notifications +// console.log("TODO: toggle") +// } +// } +// } Item { id: spacer1 @@ -237,20 +238,5 @@ Item { iconName: "leave" type: globalSettings.theme === Universal.Dark ? "secondary" : "primary" } - - Loader { - // TODO(pascal): reactivate with `isAdmin` once delete functionality - // is actually implemented - active: false - width: parent.width - sourceComponent: CommunityPopupButton { - id: deleteBtn - //% "Delete" - label: qsTrId("delete") - iconName: "delete" - txtColor: Style.current.danger - type: "warn" - } - } } }