From 93f89ed4164af464da4a73b4a2187fc9af50e9cb Mon Sep 17 00:00:00 2001 From: Michael Zanetti Date: Thu, 2 Mar 2023 23:30:24 +0100 Subject: [PATCH] Hide outdoor sensor settings in AC settings --- .../airconditioning/EditZoneThingsPage.qml | 72 +++++++++---------- 1 file changed, 36 insertions(+), 36 deletions(-) diff --git a/nymea-app/ui/mainviews/airconditioning/EditZoneThingsPage.qml b/nymea-app/ui/mainviews/airconditioning/EditZoneThingsPage.qml index 718227b1..e7b49421 100644 --- a/nymea-app/ui/mainviews/airconditioning/EditZoneThingsPage.qml +++ b/nymea-app/ui/mainviews/airconditioning/EditZoneThingsPage.qml @@ -148,44 +148,44 @@ SettingsPageBase { } } - SettingsPageSectionHeader { - text: qsTr("Outdoor sensors") - } +// SettingsPageSectionHeader { +// text: qsTr("Outdoor sensors") +// } - Repeater { - model: zoneWrapper.outdoorSensors - delegate: ThingDelegate { - Layout.fillWidth: true - thing: zoneWrapper.outdoorSensors.get(index) - progressive: false - canDelete: true - onDeleteClicked: { - acManager.removeZoneOutdoorSensor(zone.id, thing.id) - } - } - } +// Repeater { +// model: zoneWrapper.outdoorSensors +// delegate: ThingDelegate { +// Layout.fillWidth: true +// thing: zoneWrapper.outdoorSensors.get(index) +// progressive: false +// canDelete: true +// onDeleteClicked: { +// acManager.removeZoneOutdoorSensor(zone.id, thing.id) +// } +// } +// } - Button { - Layout.fillWidth: true - Layout.margins: Style.margins - text: qsTr("Add outdoor sensor") - onClicked: { - var page = pageStack.push(selectThingComponent, { - acManager: acManager, - zone: zone, - interfaces: ["temperaturesensor", "humiditysensor", "vocsensor", "pm25sensor"], - hiddenThingIds: zone.outdoorSensors, - title: qsTr("Select outdoor sensors"), - placeHolderTitle: qsTr("No sensors installed"), - placeHolderText: qsTr("Before a sensor be assigned to this zone, it needs to be connected to nymea."), - placeHolderButtonText: qsTr("Setup sensors"), - placeHolderFilterInterface: "sensor" - }) - page.selected.connect(function(thingId) { - acManager.addZoneOutdoorSensor(zone.id, thingId) - }) - } - } +// Button { +// Layout.fillWidth: true +// Layout.margins: Style.margins +// text: qsTr("Add outdoor sensor") +// onClicked: { +// var page = pageStack.push(selectThingComponent, { +// acManager: acManager, +// zone: zone, +// interfaces: ["temperaturesensor", "humiditysensor", "vocsensor", "pm25sensor"], +// hiddenThingIds: zone.outdoorSensors, +// title: qsTr("Select outdoor sensors"), +// placeHolderTitle: qsTr("No sensors installed"), +// placeHolderText: qsTr("Before a sensor be assigned to this zone, it needs to be connected to nymea."), +// placeHolderButtonText: qsTr("Setup sensors"), +// placeHolderFilterInterface: "sensor" +// }) +// page.selected.connect(function(thingId) { +// acManager.addZoneOutdoorSensor(zone.id, thingId) +// }) +// } +// } SettingsPageSectionHeader { text: qsTr("Notifications")