Hide the delette option on child devices

Fixes #273
This commit is contained in:
Michael Zanetti 2020-02-03 18:52:47 +01:00
parent 4f9c405d46
commit f911f19085

View File

@ -46,6 +46,7 @@ Page {
popup.open();
return;
default:
var errorDialog = Qt.createComponent(Qt.resolvedUrl("../components/ErrorDialog.qml"))
var popup = errorDialog.createObject(root, {errorCode: params.deviceError})
popup.open();
}
@ -74,7 +75,7 @@ Page {
delegate: ThingDelegate {
device: deviceProxy.getDevice(model.id)
canDelete: true
canDelete: !device.isChild
onClicked: {
print("clicked:", model.id)
pageStack.push(Qt.resolvedUrl("ConfigureThingPage.qml"), {device: device})