From 4f2db08a7505cacf91cd53599bc3b9b05819d20c Mon Sep 17 00:00:00 2001 From: Boris Melnik Date: Wed, 24 Aug 2022 17:37:05 +0300 Subject: [PATCH] fix(StatusListItem): fix `sensor.onClicked` to `onClicked` Closes: #7135 --- .../communities/CommunityProfilePopupOverviewPanel.qml | 4 ++-- .../Chat/popups/community/CommunitiesPopup.qml | 2 +- .../Chat/popups/community/CreateCategoryPopup.qml | 4 ++-- ui/app/AppLayouts/Chat/views/CommunityColumnView.qml | 2 +- .../Profile/popups/ExemptionNotificationsModal.qml | 2 +- ui/app/AppLayouts/Profile/popups/WakuNodesModal.qml | 6 +++--- ui/app/AppLayouts/Profile/views/MessagingView.qml | 10 +++++----- ui/app/AppLayouts/Profile/views/NotificationsView.qml | 4 ++-- .../Profile/views/profile/MyProfileSettingsView.qml | 2 +- ui/imports/shared/controls/RadioButtonSelector.qml | 2 +- 10 files changed, 19 insertions(+), 19 deletions(-) diff --git a/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupOverviewPanel.qml b/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupOverviewPanel.qml index dc4e4f01ad..b38a9b6a53 100644 --- a/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupOverviewPanel.qml +++ b/ui/app/AppLayouts/Chat/panels/communities/CommunityProfilePopupOverviewPanel.qml @@ -68,7 +68,7 @@ Column { title: qsTr("Transfer ownership") icon.name: "exchange" type: StatusListItem.Type.Secondary - sensor.onClicked: root.transferOwnershipButtonClicked() + onClicked: root.transferOwnershipButtonClicked() } StatusListItem { @@ -76,7 +76,7 @@ Column { title: qsTr("Leave community") icon.name: "arrow-left" type: StatusListItem.Type.Danger - sensor.onClicked: root.leaveButtonClicked() + onClicked: root.leaveButtonClicked() } /* // TODO add this back when roles exist */ diff --git a/ui/app/AppLayouts/Chat/popups/community/CommunitiesPopup.qml b/ui/app/AppLayouts/Chat/popups/community/CommunitiesPopup.qml index e0ce4c7be7..9e2883be61 100644 --- a/ui/app/AppLayouts/Chat/popups/community/CommunitiesPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/CommunitiesPopup.qml @@ -128,7 +128,7 @@ StatusModal { icon.isLetterIdenticon: !model.image icon.background.color: model.color || Theme.palette.primaryColor1 - sensor.onClicked: { + onClicked: { if (model.joined && model.isMember) { popup.setActiveCommunity(model.id); } else { diff --git a/ui/app/AppLayouts/Chat/popups/community/CreateCategoryPopup.qml b/ui/app/AppLayouts/Chat/popups/community/CreateCategoryPopup.qml index 386248f70c..340720a80f 100644 --- a/ui/app/AppLayouts/Chat/popups/community/CreateCategoryPopup.qml +++ b/ui/app/AppLayouts/Chat/popups/community/CreateCategoryPopup.qml @@ -132,7 +132,7 @@ StatusModal { ringSettings.ringSpecModel: model.colorHash icon.isLetterIdenticon: true icon.background.color: model.color - sensor.onClicked: channelItemCheckbox.checked = !channelItemCheckbox.checked + onClicked: channelItemCheckbox.checked = !channelItemCheckbox.checked components: [ StatusCheckBox { @@ -169,7 +169,7 @@ StatusModal { title: qsTr("Delete category") icon.name: "delete" type: StatusListItem.Type.Danger - sensor.onClicked: { + onClicked: { Global.openPopup(deleteCategoryConfirmationDialogComponent, { title: qsTr("Delete %1 category").arg(root.contentItem.categoryName.input.text), confirmationText: qsTr("Are you sure you want to delete %1 category? Channels inside the category won’t be deleted.").arg(root.contentItem.categoryName.input.text) diff --git a/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml b/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml index 9d0e5dacd6..e3867389ec 100644 --- a/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml +++ b/ui/app/AppLayouts/Chat/views/CommunityColumnView.qml @@ -108,7 +108,7 @@ Item { StatusContactRequestsIndicatorListItem { title: qsTr("Membership requests") requestsCount: membershipRequests.nbRequests - sensor.onClicked: Global.openPopup(root.membershipRequestPopup, { + onClicked: Global.openPopup(root.membershipRequestPopup, { communitySectionModule: root.communitySectionModule }) } diff --git a/ui/app/AppLayouts/Profile/popups/ExemptionNotificationsModal.qml b/ui/app/AppLayouts/Profile/popups/ExemptionNotificationsModal.qml index 55ec30f438..f24c173d2c 100644 --- a/ui/app/AppLayouts/Profile/popups/ExemptionNotificationsModal.qml +++ b/ui/app/AppLayouts/Profile/popups/ExemptionNotificationsModal.qml @@ -77,7 +77,7 @@ StatusModal { } } ] - sensor.onClicked: { + onClicked: { muteAllMessagesSwitch.clicked() } } diff --git a/ui/app/AppLayouts/Profile/popups/WakuNodesModal.qml b/ui/app/AppLayouts/Profile/popups/WakuNodesModal.qml index 9ec9a5a1c0..6dcff05de6 100644 --- a/ui/app/AppLayouts/Profile/popups/WakuNodesModal.qml +++ b/ui/app/AppLayouts/Profile/popups/WakuNodesModal.qml @@ -50,7 +50,7 @@ StatusModal { onCheckedChanged: root.messagingStore.toggleUseMailservers(checked) } ] - sensor.onClicked: { + onClicked: { root.messagingStore.toggleUseMailservers(!root.messagingStore.useMailservers) } } @@ -69,7 +69,7 @@ StatusModal { onCheckedChanged: root.messagingStore.enableAutomaticMailserverSelection(checked) } ] - sensor.onClicked: { + onClicked: { automaticSelectionSwitch.checked = !automaticSelectionSwitch.checked } } @@ -106,7 +106,7 @@ StatusModal { } } ] - sensor.onClicked: { + onClicked: { nodeRadioBtn.checked = true } } diff --git a/ui/app/AppLayouts/Profile/views/MessagingView.qml b/ui/app/AppLayouts/Profile/views/MessagingView.qml index 72295a8d33..54929e5c7e 100644 --- a/ui/app/AppLayouts/Profile/views/MessagingView.qml +++ b/ui/app/AppLayouts/Profile/views/MessagingView.qml @@ -65,7 +65,7 @@ SettingsContentBase { } } ] - sensor.onClicked: { + onClicked: { switch3.checked = !switch3.checked } } @@ -246,7 +246,7 @@ SettingsContentBase { } } ] - sensor.onClicked: { + onClicked: { showMessageLinksSwitch.checked = !showMessageLinksSwitch.checked } } @@ -326,7 +326,7 @@ SettingsContentBase { } } ] - sensor.onClicked: { + onClicked: { imageSwitch.checked = !imageSwitch.checked } } @@ -387,7 +387,7 @@ SettingsContentBase { } } ] - sensor.onClicked: { + onClicked: { siteSwitch.checked = !siteSwitch.checked } } @@ -420,7 +420,7 @@ SettingsContentBase { color: Theme.palette.baseColor1 } ] - sensor.onClicked: Global.openPopup(wakuNodeModalComponent) + onClicked: Global.openPopup(wakuNodeModalComponent) } Component { diff --git a/ui/app/AppLayouts/Profile/views/NotificationsView.qml b/ui/app/AppLayouts/Profile/views/NotificationsView.qml index b6b65cf697..ec44f2c272 100644 --- a/ui/app/AppLayouts/Profile/views/NotificationsView.qml +++ b/ui/app/AppLayouts/Profile/views/NotificationsView.qml @@ -251,7 +251,7 @@ SettingsContentBase { } } ] - sensor.onClicked: { + onClicked: { allowNotifSwitch.clicked() } } @@ -436,7 +436,7 @@ SettingsContentBase { } } ] - sensor.onClicked: { + onClicked: { soundSwitch.clicked() } } diff --git a/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml b/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml index cfd68e75f8..db7a3102b5 100644 --- a/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml +++ b/ui/app/AppLayouts/Profile/views/profile/MyProfileSettingsView.qml @@ -134,7 +134,7 @@ ColumnLayout { readonly property bool currentStoredValue: localAccountSettings.storeToKeychainValue === Constants.keychain.storedValue.store checked: currentStoredValue } ] - sensor.onClicked: biometricsSwitch.toggle() + onClicked: biometricsSwitch.toggle() } StatusTabBar { diff --git a/ui/imports/shared/controls/RadioButtonSelector.qml b/ui/imports/shared/controls/RadioButtonSelector.qml index 22f33b587b..a1f6a0ec69 100644 --- a/ui/imports/shared/controls/RadioButtonSelector.qml +++ b/ui/imports/shared/controls/RadioButtonSelector.qml @@ -21,7 +21,7 @@ StatusListItem { anchors.right: parent.right anchors.rightMargin: -Style.current.padding - sensor.onClicked: { + onClicked: { radioButton.checked = !radioButton.checked }