Skip to content

Commit

Permalink
#488 Removed "None" level alarms from alarm list
Browse files Browse the repository at this point in the history
  • Loading branch information
ArkadiuszParafiniuk committed Mar 8, 2018
1 parent d12b06e commit 6b1822c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/br/org/scadabr/view/component/AlarmListComponent.java
Original file line number Diff line number Diff line change
Expand Up @@ -69,15 +69,20 @@ public String generateContent() {

private void filter(List<EventInstance> list, int alarmLevel) {

removeAlarmLevel(list, AlarmLevels.NONE);
if (AlarmLevels.INFORMATION == alarmLevel) {
removeAlarmLevel(list, AlarmLevels.NONE);
}
if (AlarmLevels.URGENT == alarmLevel) {
removeAlarmLevel(list, AlarmLevels.NONE);
removeAlarmLevel(list, AlarmLevels.INFORMATION);
}
if (AlarmLevels.CRITICAL == alarmLevel) {
removeAlarmLevel(list, AlarmLevels.NONE);
removeAlarmLevel(list, AlarmLevels.INFORMATION);
removeAlarmLevel(list, AlarmLevels.URGENT);
}
if (AlarmLevels.LIFE_SAFETY == alarmLevel) {
removeAlarmLevel(list, AlarmLevels.NONE);
removeAlarmLevel(list, AlarmLevels.INFORMATION);
removeAlarmLevel(list, AlarmLevels.URGENT);
removeAlarmLevel(list, AlarmLevels.CRITICAL);
Expand Down

0 comments on commit 6b1822c

Please sign in to comment.