From 3e6220dc90df1fe1654cc4ead3c8275ac391d705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Cie=C5=9Blak?= Date: Mon, 18 Jul 2022 14:50:08 +0200 Subject: [PATCH] fix(@desktop/chat): Remove notifications section from community management --- .../Chat/views/CommunitySettingsView.qml | 43 +++++-------------- ui/i18n/qml_en.ts | 23 +++------- 2 files changed, 16 insertions(+), 50 deletions(-) diff --git a/ui/app/AppLayouts/Chat/views/CommunitySettingsView.qml b/ui/app/AppLayouts/Chat/views/CommunitySettingsView.qml index b0a3a0c91f..0543ddfa32 100644 --- a/ui/app/AppLayouts/Chat/views/CommunitySettingsView.qml +++ b/ui/app/AppLayouts/Chat/views/CommunitySettingsView.qml @@ -23,14 +23,15 @@ StatusAppTwoPanelLayout { id: root // TODO: get this model from backend? - property var settingsMenuModel: [{name: qsTr("Overview"), icon: "help"}, - {name: qsTr("Members"), icon: "group-chat"}, -// {name: qsTr("Permissions"), icon: "objects"}, -// {name: qsTr("Tokens"), icon: "token"}, -// {name: qsTr("Airdrops"), icon: "airdrop"}, -// {name: qsTr("Token sales"), icon: "token-sale"}, -// {name: qsTr("Subscriptions"), icon: "subscription"}, - {name: qsTr("Notifications"), icon: "notification"}] + property var settingsMenuModel: [ + {name: qsTr("Overview"), icon: "help"}, + {name: qsTr("Members"), icon: "group-chat"}, +// {name: qsTr("Permissions"), icon: "objects"}, +// {name: qsTr("Tokens"), icon: "token"}, +// {name: qsTr("Airdrops"), icon: "airdrop"}, +// {name: qsTr("Token sales"), icon: "token-sale"}, +// {name: qsTr("Subscriptions"), icon: "subscription"} + ] property var rootStore property var community @@ -78,7 +79,7 @@ StatusAppTwoPanelLayout { width: listView.width title: modelData.name icon.name: modelData.icon - selected: d.currentIndex == index + selected: d.currentIndex === index onClicked: d.currentIndex = index } } @@ -192,30 +193,6 @@ StatusAppTwoPanelLayout { communitySectionModule: root.chatCommunitySectionModule }) } - - SettingsPageLayout { - title: qsTr("Notifications") - - content: ColumnLayout { - StatusListItem { - Layout.fillWidth: true - - title: qsTr("Enabled") - icon.name: "notification" - sensor.cursorShape: Qt.ArrowCursor - components: [ - StatusSwitch { - checked: !root.community.muted - onClicked: root.chatCommunitySectionModule.setCommunityMuted(!checked) - } - ] - } - - Item { - Layout.fillHeight: true - } - } - } } } diff --git a/ui/i18n/qml_en.ts b/ui/i18n/qml_en.ts index da64bf6073..65463c87d4 100644 --- a/ui/i18n/qml_en.ts +++ b/ui/i18n/qml_en.ts @@ -2549,43 +2549,32 @@ Do you wish to override the security check and continue? CommunitySettingsView - + Overview Overview - + Members Members - - - Notifications - Notifications - - - + Settings Settings - + Open legacy popup (to be removed) Open legacy popup (to be removed) - + Back to community Back to community - - Enabled - Enabled - - - + Error editing the community Error editing the community