mirror of
https://github.com/status-im/status-desktop.git
synced 2025-01-10 06:16:32 +00:00
e868f335aa
- mention the "Privacy Policy" document in the text explaining "Help us improve Status", make a link to it and display it in a separate popup - add a standalone header button to the settings page, doing the same - extend storybook page with the "placement" param Fixes #16157
46 lines
1.3 KiB
QML
46 lines
1.3 KiB
QML
import QtQuick 2.15
|
|
import QtQuick.Controls 2.15
|
|
import QtQuick.Layouts 1.15
|
|
|
|
import utils 1.0
|
|
|
|
import StatusQ.Components 0.1
|
|
import StatusQ.Controls 0.1
|
|
|
|
SettingsContentBase {
|
|
id: root
|
|
|
|
required property bool isCentralizedMetricsEnabled
|
|
|
|
function refreshSwitch() {
|
|
enableMetricsSwitch.checked = Qt.binding(function() { return root.isCentralizedMetricsEnabled })
|
|
}
|
|
|
|
titleRowComponentLoader.sourceComponent: StatusButton {
|
|
text: qsTr("Privacy policy")
|
|
onClicked: Global.privacyPolicyRequested()
|
|
}
|
|
|
|
ColumnLayout {
|
|
StatusListItem {
|
|
Layout.preferredWidth: root.contentWidth
|
|
title: qsTr("Share usage data with Status")
|
|
subTitle: qsTr("From all profiles on device")
|
|
components: [
|
|
StatusSwitch {
|
|
id: enableMetricsSwitch
|
|
checked: root.isCentralizedMetricsEnabled
|
|
onToggled: {
|
|
Global.openMetricsEnablePopupRequested(Constants.metricsEnablePlacement.privacyAndSecurity, null)
|
|
refreshSwitch()
|
|
}
|
|
}
|
|
]
|
|
onClicked: {
|
|
Global.openMetricsEnablePopupRequested(Constants.metricsEnablePlacement.privacyAndSecurity, null)
|
|
refreshSwitch()
|
|
}
|
|
}
|
|
}
|
|
}
|