Adapt links to online privacy policy through configuration parameter
Signed-off-by: Martin Lukas <martin.lukas@chargebyte.com>
This commit is contained in:
parent
264f803a17
commit
c5d664b65b
@ -20,6 +20,7 @@ ConfigurationBase {
|
||||
pluginSettingsEnabled: true
|
||||
|
||||
tunnelProxyUrl: "tunnelproxy.nymea.io"
|
||||
privacyPolicyUrl: "https://nymea.io/privacy-statement/en/nymea_privacy.html"
|
||||
|
||||
mainMenuLinks: [
|
||||
{
|
||||
|
||||
@ -12,6 +12,8 @@ Item {
|
||||
property string tunnelProxyUrl: ""
|
||||
property int tunnelProxyPort: 2213
|
||||
|
||||
property string privacyPolicyUrl: ""
|
||||
|
||||
// Enable/disable certain features
|
||||
property bool magicEnabled: false
|
||||
property bool networkSettingsEnabled: false
|
||||
|
||||
@ -152,11 +152,11 @@ Item {
|
||||
Layout.fillWidth: true
|
||||
text: qsTr("View privacy policy")
|
||||
iconName: "../images/stock_website.svg"
|
||||
subText: app.privacyPolicyUrl
|
||||
subText: Configuration.privacyPolicyUrl
|
||||
prominentSubText: false
|
||||
wrapTexts: false
|
||||
onClicked:
|
||||
Qt.openUrlExternally(app.privacyPolicyUrl)
|
||||
Qt.openUrlExternally(Configuration.privacyPolicyUrl)
|
||||
}
|
||||
|
||||
NymeaSwipeDelegate {
|
||||
|
||||
Reference in New Issue
Block a user