commit | 81c3fa23a04cd4838f9547a44f740f5a0e9cc86f | [log] [tgz] |
---|---|---|
author | Sean Condon <sean.condon@microsemi.com> | Thu Jan 31 20:54:53 2019 +0000 |
committer | Andrea Campanella <andrea@opennetworking.org> | Fri Feb 01 11:14:05 2019 +0000 |
tree | 52c1fbaff7f59973b8a388565b4b9b061e9d9c0b | |
parent | ac90fbe044f51fb02a01140d3acdde3261f81287 [diff] [blame] |
[ONOS-7907] Glyph specified for device not used in device table or device detail boxes Change-Id: I87ed2926462627d12af401e45a734a8bfac59276 (cherry picked from commit 794d250740dcf2bdad65ad0f5ebe473d3093a266)
diff --git a/web/gui/src/main/java/org/onosproject/ui/impl/DeviceViewMessageHandler.java b/web/gui/src/main/java/org/onosproject/ui/impl/DeviceViewMessageHandler.java index fa03537..7f6c253 100644 --- a/web/gui/src/main/java/org/onosproject/ui/impl/DeviceViewMessageHandler.java +++ b/web/gui/src/main/java/org/onosproject/ui/impl/DeviceViewMessageHandler.java
@@ -128,6 +128,10 @@ } private static String getTypeIconId(Device d) { + String uiType = d.annotations().value(AnnotationKeys.UI_TYPE); + if (uiType != null && !uiType.isEmpty()) { + return uiType; + } return DEV_ICON_PREFIX + d.type().toString(); }