Add a configuration option to hide links in menu
This commit is contained in:
parent
e501ed3b5b
commit
5a66d44445
@ -3,4 +3,6 @@ import QtQuick 2.0
|
|||||||
|
|
||||||
ConfigurationBase {
|
ConfigurationBase {
|
||||||
|
|
||||||
|
showCommunityLinks: true
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,4 +5,6 @@ Item {
|
|||||||
property string appName: "nymea:app"
|
property string appName: "nymea:app"
|
||||||
|
|
||||||
property string connectionWizard: "/ui/connection/NewConnectionWizard.qml"
|
property string connectionWizard: "/ui/connection/NewConnectionWizard.qml"
|
||||||
|
|
||||||
|
property bool showCommunityLinks: false
|
||||||
}
|
}
|
||||||
|
|||||||
@ -198,6 +198,7 @@ Drawer {
|
|||||||
iconName: "../images/help.svg"
|
iconName: "../images/help.svg"
|
||||||
progressive: false
|
progressive: false
|
||||||
onClicked: Qt.openUrlExternally("https://nymea.io/documentation/users/usage/first-steps")
|
onClicked: Qt.openUrlExternally("https://nymea.io/documentation/users/usage/first-steps")
|
||||||
|
visible: Configuration.showCommunityLinks
|
||||||
}
|
}
|
||||||
NymeaItemDelegate {
|
NymeaItemDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@ -205,6 +206,7 @@ Drawer {
|
|||||||
iconName: "../images/discourse.svg"
|
iconName: "../images/discourse.svg"
|
||||||
progressive: false
|
progressive: false
|
||||||
onClicked: Qt.openUrlExternally("https://forum.nymea.io")
|
onClicked: Qt.openUrlExternally("https://forum.nymea.io")
|
||||||
|
visible: Configuration.showCommunityLinks
|
||||||
}
|
}
|
||||||
NymeaItemDelegate {
|
NymeaItemDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@ -212,6 +214,7 @@ Drawer {
|
|||||||
iconName: "../images/telegram.svg"
|
iconName: "../images/telegram.svg"
|
||||||
progressive: false
|
progressive: false
|
||||||
onClicked: Qt.openUrlExternally("https://t.me/nymeacommunity")
|
onClicked: Qt.openUrlExternally("https://t.me/nymeacommunity")
|
||||||
|
visible: Configuration.showCommunityLinks
|
||||||
}
|
}
|
||||||
NymeaItemDelegate {
|
NymeaItemDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@ -219,6 +222,7 @@ Drawer {
|
|||||||
iconName: "../images/discord.svg"
|
iconName: "../images/discord.svg"
|
||||||
progressive: false
|
progressive: false
|
||||||
onClicked: Qt.openUrlExternally("https://discord.gg/tX9YCpD")
|
onClicked: Qt.openUrlExternally("https://discord.gg/tX9YCpD")
|
||||||
|
visible: Configuration.showCommunityLinks
|
||||||
}
|
}
|
||||||
NymeaItemDelegate {
|
NymeaItemDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@ -226,6 +230,7 @@ Drawer {
|
|||||||
iconName: "../images/twitter.svg"
|
iconName: "../images/twitter.svg"
|
||||||
progressive: false
|
progressive: false
|
||||||
onClicked: Qt.openUrlExternally("https://twitter.com/nymea_io")
|
onClicked: Qt.openUrlExternally("https://twitter.com/nymea_io")
|
||||||
|
visible: Configuration.showCommunityLinks
|
||||||
}
|
}
|
||||||
NymeaItemDelegate {
|
NymeaItemDelegate {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
@ -233,6 +238,7 @@ Drawer {
|
|||||||
iconName: "../images/facebook.svg"
|
iconName: "../images/facebook.svg"
|
||||||
progressive: false
|
progressive: false
|
||||||
onClicked: Qt.openUrlExternally("https://m.facebook.com/groups/nymea")
|
onClicked: Qt.openUrlExternally("https://m.facebook.com/groups/nymea")
|
||||||
|
visible: Configuration.showCommunityLinks
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user