Skip to content

armgit / core

Public Imported from GitHub
0

100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps

Minor bug fix for GWT compilation

Rich Turner617efa0cb3a8
diff --git a/client/src/main/java/org/openremote/app/client/admin/users/edit/AdminUserEditImpl.ui.xml b/client/src/main/java/org/openremote/app/client/admin/users/edit/AdminUserEditImpl.ui.xml
index 53aa8de7b..fcb658f83 100644
--- a/client/src/main/java/org/openremote/app/client/admin/users/edit/AdminUserEditImpl.ui.xml
+++ b/client/src/main/java/org/openremote/app/client/admin/users/edit/AdminUserEditImpl.ui.xml
@@ -124,6 +124,9 @@
</g:HTMLPanel>
+ <g:FlowPanel ui:field="registeredDevicesContainer"
+ styleName="flex layout vertical {widgetStyle.MainContent} {widgetStyle.FormList}"/>
+
<g:FlowPanel styleName="flex-none layout vertical {widgetStyle.MainContent}">
<w:FormGroup>
<w:field>
@@ -134,6 +137,9 @@
visible="false" icon="save"/>
<w:FormButton ui:field="deleteButton" danger="true" text="{managerMessages.deleteUser}"
visible="false" icon="trash"/>
+ <w:FormButton ui:field="refreshDeviceRegistrations"
+ text="{managerMessages.refreshDeviceRegistrations}"
+ icon="refresh"/>
</w:FormField>
</w:field>
</w:FormGroup>
diff --git a/model/src/main/java/org/openremote/model/notification/Notification.java b/model/src/main/java/org/openremote/model/notification/Notification.java
index e7d983a28..b2fa631d9 100644
--- a/model/src/main/java/org/openremote/model/notification/Notification.java
+++ b/model/src/main/java/org/openremote/model/notification/Notification.java
@@ -45,12 +45,12 @@ public class Notification {
protected TargetType type;
protected String[] ids;
- @JsonCreator
- public Targets(@JsonProperty("type") TargetType type, @JsonProperty("ids") List<String> ids) {
+ public Targets(TargetType type, List<String> ids) {
this(type, ids.toArray(new String[ids.size()]));
}
- public Targets(@JsonProperty("type") TargetType type, String...ids) {
+ @JsonCreator
+ public Targets(@JsonProperty("type") TargetType type, @JsonProperty("ids")String...ids) {
this.type = type;
this.ids = ids;
}