Fix for alarm device panel not showing up, removing esc hook in alarm overlay

Change-Id: Idcf46c8782b88edfdec1560aca60d05d3d040aa1
This commit is contained in:
Andrea Campanella 2017-02-02 11:29:59 -08:00
parent fc5c58437f
commit c2417670d1
2 changed files with 1 additions and 9 deletions

View File

@ -33,7 +33,6 @@ public class AlarmTopovOverlay extends UiTopoOverlay {
private static final String OVERLAY_ID = "alarmsTopo-overlay";
private static final ButtonId ALARM1_BUTTON = new ButtonId("alarm1button");
private static final ButtonId ALARM2_BUTTON = new ButtonId("alarm2button");
public AlarmTopovOverlay() {
super(OVERLAY_ID);
@ -58,8 +57,7 @@ public class AlarmTopovOverlay extends UiTopoOverlay {
Map<Alarm.SeverityLevel, Long> countsForDevice = AlarmServiceUtil.lookUpAlarmCounts(deviceId);
addAlarmCountsProperties(pp, countsForDevice);
pp.addButton(ALARM1_BUTTON)
.addButton(ALARM2_BUTTON);
pp.addButton(ALARM1_BUTTON);
pp.removeButtons(CoreButtons.SHOW_PORT_VIEW)
.removeButtons(CoreButtons.SHOW_GROUP_VIEW)

View File

@ -103,12 +103,6 @@
}
},
hooks: {
// hook for handling escape key
// Must return true to consume ESC, false otherwise.
escape: function () {
// Must return true to consume ESC, false otherwise.
return atds.stopDisplay();
},
// hooks for when the selection changes...
empty: function () {
selectionCallback('empty');