Some fixes in the add device results page
This commit is contained in:
parent
3a2b90f60c
commit
581cd9984f
@ -64,7 +64,7 @@ Page {
|
|||||||
busyOverlay.shown = false
|
busyOverlay.shown = false
|
||||||
if (params["deviceError"] !== "DeviceErrorNoError") {
|
if (params["deviceError"] !== "DeviceErrorNoError") {
|
||||||
busyOverlay.shown = false;
|
busyOverlay.shown = false;
|
||||||
internalPageStack.push(resultsPage, {success: false})
|
internalPageStack.push(resultsPage, {deviceError: params["deviceError"], message: params["displayMessage"]});
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -86,15 +86,16 @@ Page {
|
|||||||
}
|
}
|
||||||
onConfirmPairingReply: {
|
onConfirmPairingReply: {
|
||||||
busyOverlay.shown = false
|
busyOverlay.shown = false
|
||||||
internalPageStack.push(resultsPage, {success: params["deviceError"] === "DeviceErrorNoError", deviceId: params["deviceId"], message: params["displayMessage"]})
|
internalPageStack.push(resultsPage, {deviceError: params["deviceError"], deviceId: params["deviceId"], message: params["displayMessage"]})
|
||||||
}
|
}
|
||||||
onAddDeviceReply: {
|
onAddDeviceReply: {
|
||||||
|
print("Device added:", JSON.stringify(params))
|
||||||
busyOverlay.shown = false;
|
busyOverlay.shown = false;
|
||||||
internalPageStack.push(resultsPage, {success: params["deviceError"] === "DeviceErrorNoError", deviceId: params["deviceId"]})
|
internalPageStack.push(resultsPage, {deviceError: params["deviceError"], deviceId: params["deviceId"], message: params["displayMessage"]})
|
||||||
}
|
}
|
||||||
onReconfigureDeviceReply: {
|
onReconfigureDeviceReply: {
|
||||||
busyOverlay.shown = false;
|
busyOverlay.shown = false;
|
||||||
internalPageStack.push(resultsPage, {success: params["deviceError"] === "DeviceErrorNoError", deviceId: params["deviceId"]})
|
internalPageStack.push(resultsPage, {deviceError: params["deviceError"], deviceId: params["deviceId"], message: params["displayMessage"]})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -486,10 +487,12 @@ Page {
|
|||||||
Page {
|
Page {
|
||||||
id: resultsView
|
id: resultsView
|
||||||
|
|
||||||
property bool success
|
|
||||||
property string deviceId
|
property string deviceId
|
||||||
|
property string deviceError
|
||||||
property string message
|
property string message
|
||||||
|
|
||||||
|
readonly property bool success: deviceError === "DeviceErrorNoError"
|
||||||
|
|
||||||
readonly property var device: root.device ? root.device : engine.deviceManager.devices.getDevice(deviceId)
|
readonly property var device: root.device ? root.device : engine.deviceManager.devices.getDevice(deviceId)
|
||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
|
|||||||
Reference in New Issue
Block a user