Hide outdoor sensor settings in AC settings
This commit is contained in:
parent
7d671c652d
commit
93f89ed416
@ -148,44 +148,44 @@ SettingsPageBase {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SettingsPageSectionHeader {
|
// SettingsPageSectionHeader {
|
||||||
text: qsTr("Outdoor sensors")
|
// text: qsTr("Outdoor sensors")
|
||||||
}
|
// }
|
||||||
|
|
||||||
Repeater {
|
// Repeater {
|
||||||
model: zoneWrapper.outdoorSensors
|
// model: zoneWrapper.outdoorSensors
|
||||||
delegate: ThingDelegate {
|
// delegate: ThingDelegate {
|
||||||
Layout.fillWidth: true
|
// Layout.fillWidth: true
|
||||||
thing: zoneWrapper.outdoorSensors.get(index)
|
// thing: zoneWrapper.outdoorSensors.get(index)
|
||||||
progressive: false
|
// progressive: false
|
||||||
canDelete: true
|
// canDelete: true
|
||||||
onDeleteClicked: {
|
// onDeleteClicked: {
|
||||||
acManager.removeZoneOutdoorSensor(zone.id, thing.id)
|
// acManager.removeZoneOutdoorSensor(zone.id, thing.id)
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
Button {
|
// Button {
|
||||||
Layout.fillWidth: true
|
// Layout.fillWidth: true
|
||||||
Layout.margins: Style.margins
|
// Layout.margins: Style.margins
|
||||||
text: qsTr("Add outdoor sensor")
|
// text: qsTr("Add outdoor sensor")
|
||||||
onClicked: {
|
// onClicked: {
|
||||||
var page = pageStack.push(selectThingComponent, {
|
// var page = pageStack.push(selectThingComponent, {
|
||||||
acManager: acManager,
|
// acManager: acManager,
|
||||||
zone: zone,
|
// zone: zone,
|
||||||
interfaces: ["temperaturesensor", "humiditysensor", "vocsensor", "pm25sensor"],
|
// interfaces: ["temperaturesensor", "humiditysensor", "vocsensor", "pm25sensor"],
|
||||||
hiddenThingIds: zone.outdoorSensors,
|
// hiddenThingIds: zone.outdoorSensors,
|
||||||
title: qsTr("Select outdoor sensors"),
|
// title: qsTr("Select outdoor sensors"),
|
||||||
placeHolderTitle: qsTr("No sensors installed"),
|
// placeHolderTitle: qsTr("No sensors installed"),
|
||||||
placeHolderText: qsTr("Before a sensor be assigned to this zone, it needs to be connected to nymea."),
|
// placeHolderText: qsTr("Before a sensor be assigned to this zone, it needs to be connected to nymea."),
|
||||||
placeHolderButtonText: qsTr("Setup sensors"),
|
// placeHolderButtonText: qsTr("Setup sensors"),
|
||||||
placeHolderFilterInterface: "sensor"
|
// placeHolderFilterInterface: "sensor"
|
||||||
})
|
// })
|
||||||
page.selected.connect(function(thingId) {
|
// page.selected.connect(function(thingId) {
|
||||||
acManager.addZoneOutdoorSensor(zone.id, thingId)
|
// acManager.addZoneOutdoorSensor(zone.id, thingId)
|
||||||
})
|
// })
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
SettingsPageSectionHeader {
|
SettingsPageSectionHeader {
|
||||||
text: qsTr("Notifications")
|
text: qsTr("Notifications")
|
||||||
|
|||||||
Reference in New Issue
Block a user