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
|
pluginSettingsEnabled: true
|
||||||
|
|
||||||
tunnelProxyUrl: "tunnelproxy.nymea.io"
|
tunnelProxyUrl: "tunnelproxy.nymea.io"
|
||||||
|
privacyPolicyUrl: "https://nymea.io/privacy-statement/en/nymea_privacy.html"
|
||||||
|
|
||||||
mainMenuLinks: [
|
mainMenuLinks: [
|
||||||
{
|
{
|
||||||
|
|||||||
@ -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
|
||||||
|
|||||||
@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user