some fixes
This commit is contained in:
parent
373483f377
commit
7e998c04fa
@ -77,7 +77,7 @@ ItemDelegate {
|
|||||||
case "uint":
|
case "uint":
|
||||||
case "int":
|
case "int":
|
||||||
case "double":
|
case "double":
|
||||||
if (root.paramType.minValue && root.paramType.maxValue) {
|
if (root.paramType.minValue !== undefined && root.paramType.maxValue !== undefined) {
|
||||||
return sliderComponent;
|
return sliderComponent;
|
||||||
} else {
|
} else {
|
||||||
return spinnerComponent;
|
return spinnerComponent;
|
||||||
|
|||||||
@ -433,7 +433,13 @@ SettingsPageBase {
|
|||||||
engine.deviceManager.connectIO(inputThingId, inputStateTypeId, outputThingId, outputStateTypeId);
|
engine.deviceManager.connectIO(inputThingId, inputStateTypeId, outputThingId, outputStateTypeId);
|
||||||
}
|
}
|
||||||
onReset: {
|
onReset: {
|
||||||
engine.deviceManager.disconnectIO(ioConnectionDialog.watcher.ioConnection.id);
|
if (ioConnectionDialog.ioStateType.ioType == Types.IOTypeDigitalInput
|
||||||
|
|| ioConnectionDialog.ioStateType.ioType == Types.IOTypeAnalogInput) {
|
||||||
|
engine.deviceManager.disconnectIO(ioConnectionDialog.inputWatcher.ioConnection.id);
|
||||||
|
} else {
|
||||||
|
engine.deviceManager.disconnectIO(ioConnectionDialog.outputWatcher.ioConnection.id);
|
||||||
|
}
|
||||||
|
|
||||||
ioConnectionDialog.reject();
|
ioConnectionDialog.reject();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user