mirror of
https://github.com/opennetworkinglab/onos.git
synced 2026-05-05 12:16:13 +02:00
Fix for alarm device panel not showing up, removing esc hook in alarm overlay
Change-Id: Idcf46c8782b88edfdec1560aca60d05d3d040aa1
This commit is contained in:
parent
fc5c58437f
commit
c2417670d1
@ -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)
|
||||
|
||||
@ -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');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user