fix(StatusListItem): fix `sensor.onClicked` to `onClicked`

Closes: #7135
This commit is contained in:
Boris Melnik 2022-08-24 17:37:05 +03:00
parent 3aaa0fda13
commit 4f2db08a75
10 changed files with 19 additions and 19 deletions

View File

@ -68,7 +68,7 @@ Column {
title: qsTr("Transfer ownership") title: qsTr("Transfer ownership")
icon.name: "exchange" icon.name: "exchange"
type: StatusListItem.Type.Secondary type: StatusListItem.Type.Secondary
sensor.onClicked: root.transferOwnershipButtonClicked() onClicked: root.transferOwnershipButtonClicked()
} }
StatusListItem { StatusListItem {
@ -76,7 +76,7 @@ Column {
title: qsTr("Leave community") title: qsTr("Leave community")
icon.name: "arrow-left" icon.name: "arrow-left"
type: StatusListItem.Type.Danger type: StatusListItem.Type.Danger
sensor.onClicked: root.leaveButtonClicked() onClicked: root.leaveButtonClicked()
} }
/* // TODO add this back when roles exist */ /* // TODO add this back when roles exist */

View File

@ -128,7 +128,7 @@ StatusModal {
icon.isLetterIdenticon: !model.image icon.isLetterIdenticon: !model.image
icon.background.color: model.color || Theme.palette.primaryColor1 icon.background.color: model.color || Theme.palette.primaryColor1
sensor.onClicked: { onClicked: {
if (model.joined && model.isMember) { if (model.joined && model.isMember) {
popup.setActiveCommunity(model.id); popup.setActiveCommunity(model.id);
} else { } else {

View File

@ -132,7 +132,7 @@ StatusModal {
ringSettings.ringSpecModel: model.colorHash ringSettings.ringSpecModel: model.colorHash
icon.isLetterIdenticon: true icon.isLetterIdenticon: true
icon.background.color: model.color icon.background.color: model.color
sensor.onClicked: channelItemCheckbox.checked = !channelItemCheckbox.checked onClicked: channelItemCheckbox.checked = !channelItemCheckbox.checked
components: [ components: [
StatusCheckBox { StatusCheckBox {
@ -169,7 +169,7 @@ StatusModal {
title: qsTr("Delete category") title: qsTr("Delete category")
icon.name: "delete" icon.name: "delete"
type: StatusListItem.Type.Danger type: StatusListItem.Type.Danger
sensor.onClicked: { onClicked: {
Global.openPopup(deleteCategoryConfirmationDialogComponent, { Global.openPopup(deleteCategoryConfirmationDialogComponent, {
title: qsTr("Delete %1 category").arg(root.contentItem.categoryName.input.text), 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 wont be deleted.").arg(root.contentItem.categoryName.input.text) confirmationText: qsTr("Are you sure you want to delete %1 category? Channels inside the category wont be deleted.").arg(root.contentItem.categoryName.input.text)

View File

@ -108,7 +108,7 @@ Item {
StatusContactRequestsIndicatorListItem { StatusContactRequestsIndicatorListItem {
title: qsTr("Membership requests") title: qsTr("Membership requests")
requestsCount: membershipRequests.nbRequests requestsCount: membershipRequests.nbRequests
sensor.onClicked: Global.openPopup(root.membershipRequestPopup, { onClicked: Global.openPopup(root.membershipRequestPopup, {
communitySectionModule: root.communitySectionModule communitySectionModule: root.communitySectionModule
}) })
} }

View File

@ -77,7 +77,7 @@ StatusModal {
} }
} }
] ]
sensor.onClicked: { onClicked: {
muteAllMessagesSwitch.clicked() muteAllMessagesSwitch.clicked()
} }
} }

View File

@ -50,7 +50,7 @@ StatusModal {
onCheckedChanged: root.messagingStore.toggleUseMailservers(checked) onCheckedChanged: root.messagingStore.toggleUseMailservers(checked)
} }
] ]
sensor.onClicked: { onClicked: {
root.messagingStore.toggleUseMailservers(!root.messagingStore.useMailservers) root.messagingStore.toggleUseMailservers(!root.messagingStore.useMailservers)
} }
} }
@ -69,7 +69,7 @@ StatusModal {
onCheckedChanged: root.messagingStore.enableAutomaticMailserverSelection(checked) onCheckedChanged: root.messagingStore.enableAutomaticMailserverSelection(checked)
} }
] ]
sensor.onClicked: { onClicked: {
automaticSelectionSwitch.checked = !automaticSelectionSwitch.checked automaticSelectionSwitch.checked = !automaticSelectionSwitch.checked
} }
} }
@ -106,7 +106,7 @@ StatusModal {
} }
} }
] ]
sensor.onClicked: { onClicked: {
nodeRadioBtn.checked = true nodeRadioBtn.checked = true
} }
} }

View File

@ -65,7 +65,7 @@ SettingsContentBase {
} }
} }
] ]
sensor.onClicked: { onClicked: {
switch3.checked = !switch3.checked switch3.checked = !switch3.checked
} }
} }
@ -246,7 +246,7 @@ SettingsContentBase {
} }
} }
] ]
sensor.onClicked: { onClicked: {
showMessageLinksSwitch.checked = !showMessageLinksSwitch.checked showMessageLinksSwitch.checked = !showMessageLinksSwitch.checked
} }
} }
@ -326,7 +326,7 @@ SettingsContentBase {
} }
} }
] ]
sensor.onClicked: { onClicked: {
imageSwitch.checked = !imageSwitch.checked imageSwitch.checked = !imageSwitch.checked
} }
} }
@ -387,7 +387,7 @@ SettingsContentBase {
} }
} }
] ]
sensor.onClicked: { onClicked: {
siteSwitch.checked = !siteSwitch.checked siteSwitch.checked = !siteSwitch.checked
} }
} }
@ -420,7 +420,7 @@ SettingsContentBase {
color: Theme.palette.baseColor1 color: Theme.palette.baseColor1
} }
] ]
sensor.onClicked: Global.openPopup(wakuNodeModalComponent) onClicked: Global.openPopup(wakuNodeModalComponent)
} }
Component { Component {

View File

@ -251,7 +251,7 @@ SettingsContentBase {
} }
} }
] ]
sensor.onClicked: { onClicked: {
allowNotifSwitch.clicked() allowNotifSwitch.clicked()
} }
} }
@ -436,7 +436,7 @@ SettingsContentBase {
} }
} }
] ]
sensor.onClicked: { onClicked: {
soundSwitch.clicked() soundSwitch.clicked()
} }
} }

View File

@ -134,7 +134,7 @@ ColumnLayout {
readonly property bool currentStoredValue: localAccountSettings.storeToKeychainValue === Constants.keychain.storedValue.store readonly property bool currentStoredValue: localAccountSettings.storeToKeychainValue === Constants.keychain.storedValue.store
checked: currentStoredValue checked: currentStoredValue
} ] } ]
sensor.onClicked: biometricsSwitch.toggle() onClicked: biometricsSwitch.toggle()
} }
StatusTabBar { StatusTabBar {

View File

@ -21,7 +21,7 @@ StatusListItem {
anchors.right: parent.right anchors.right: parent.right
anchors.rightMargin: -Style.current.padding anchors.rightMargin: -Style.current.padding
sensor.onClicked: { onClicked: {
radioButton.checked = !radioButton.checked radioButton.checked = !radioButton.checked
} }