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