Adapt links to online privacy policy through configuration parameter

Signed-off-by: Martin Lukas <martin.lukas@chargebyte.com>
This commit is contained in:
Martin Lukas 2024-10-23 08:12:52 +02:00
parent 264f803a17
commit c5d664b65b
3 changed files with 5 additions and 2 deletions

View File

@ -20,6 +20,7 @@ ConfigurationBase {
pluginSettingsEnabled: true pluginSettingsEnabled: true
tunnelProxyUrl: "tunnelproxy.nymea.io" tunnelProxyUrl: "tunnelproxy.nymea.io"
privacyPolicyUrl: "https://nymea.io/privacy-statement/en/nymea_privacy.html"
mainMenuLinks: [ mainMenuLinks: [
{ {

View File

@ -12,6 +12,8 @@ Item {
property string tunnelProxyUrl: "" property string tunnelProxyUrl: ""
property int tunnelProxyPort: 2213 property int tunnelProxyPort: 2213
property string privacyPolicyUrl: ""
// Enable/disable certain features // Enable/disable certain features
property bool magicEnabled: false property bool magicEnabled: false
property bool networkSettingsEnabled: false property bool networkSettingsEnabled: false

View File

@ -152,11 +152,11 @@ Item {
Layout.fillWidth: true Layout.fillWidth: true
text: qsTr("View privacy policy") text: qsTr("View privacy policy")
iconName: "../images/stock_website.svg" iconName: "../images/stock_website.svg"
subText: app.privacyPolicyUrl subText: Configuration.privacyPolicyUrl
prominentSubText: false prominentSubText: false
wrapTexts: false wrapTexts: false
onClicked: onClicked:
Qt.openUrlExternally(app.privacyPolicyUrl) Qt.openUrlExternally(Configuration.privacyPolicyUrl)
} }
NymeaSwipeDelegate { NymeaSwipeDelegate {