some fixes
This commit is contained in:
parent
373483f377
commit
7e998c04fa
@ -77,7 +77,7 @@ ItemDelegate {
|
||||
case "uint":
|
||||
case "int":
|
||||
case "double":
|
||||
if (root.paramType.minValue && root.paramType.maxValue) {
|
||||
if (root.paramType.minValue !== undefined && root.paramType.maxValue !== undefined) {
|
||||
return sliderComponent;
|
||||
} else {
|
||||
return spinnerComponent;
|
||||
|
||||
@ -433,7 +433,13 @@ SettingsPageBase {
|
||||
engine.deviceManager.connectIO(inputThingId, inputStateTypeId, outputThingId, outputStateTypeId);
|
||||
}
|
||||
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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user