-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add new 0187-WebUI-Fix-GroupEditingIfDevicesInInbox WebUI patch fixin…
…g group editing if devices are in inbox (#2886, @jp112sdl) Co-authored-by: Jens Maus <mail@jens-maus.de>
- Loading branch information
Showing
5 changed files
with
1,789 additions
and
0 deletions.
There are no files selected for viewing
33 changes: 33 additions & 0 deletions
33
buildroot-external/patches/occu/0187-WebUI-Fix-GroupEditingIfDevicesInInbox.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- occu/HMserver/opt/HMServer/pages/GroupEditPage.ftl.orig | ||
+++ occu/HMserver/opt/HMServer/pages/GroupEditPage.ftl | ||
@@ -329,7 +329,8 @@ | ||
{ | ||
ShowWaitAnim(); | ||
|
||
- DeviceListPage.showConfiguration(false, 'DEVICE', selfGroup.device.id); | ||
+ var virtualDevice = new GroupDevice(self.virtualDeviceSerialNumber(),self.virtualDeviceSerialNumber(), "VirtualDevice"); | ||
+ DeviceListPage.showConfiguration(false, 'DEVICE', virtualDevice.device.id); | ||
HideWaitAnim(); | ||
|
||
/* | ||
@@ -568,7 +569,9 @@ | ||
}); | ||
|
||
ko.utils.arrayForEach(viewModel.assignableDevices(), function(item) { | ||
- homematic("Interface.setMetadata", {"objectId":item.device.id, "dataId": "inHeatingGroup", "value" : "false"}); | ||
+ if(item.device != undefined) { | ||
+ homematic("Interface.setMetadata", {"objectId":item.device.id, "dataId": "inHeatingGroup", "value" : "false"}); | ||
+ } | ||
}); | ||
|
||
pb = JSON.stringify(data); | ||
--- occu/WebUI/www/webui/js/common/viewmodels.js.orig | ||
+++ occu/WebUI/www/webui/js/common/viewmodels.js | ||
@@ -64,6 +64,7 @@ | ||
if (typeof self.device != "undefined") { | ||
return DEV_getImagePath(self.device.deviceType.id, 50); | ||
} | ||
+ else return DEV_getImagePath(this.type, 50); | ||
} | ||
|
||
}, this); |
Oops, something went wrong.