summaryrefslogtreecommitdiff
path: root/www/templates
diff options
context:
space:
mode:
Diffstat (limited to 'www/templates')
-rw-r--r--www/templates/events-popover.html3
-rw-r--r--www/templates/events.html3
2 files changed, 5 insertions, 1 deletions
diff --git a/www/templates/events-popover.html b/www/templates/events-popover.html
index 0de4f857..43142ec0 100644
--- a/www/templates/events-popover.html
+++ b/www/templates/events-popover.html
@@ -9,6 +9,9 @@
<a class="item" ng-href="" ng-click="popover.hide();doRefresh();">
Refresh
</a>
+
+ <a class="item" ng-href="" ng-click="popover.hide();toggleMinAlarmFrameCount();" ng-if="minAlarmCount=='1'">Show all events</a>
+ <a class="item" ng-href="" ng-click="popover.hide();toggleMinAlarmFrameCount();" ng-if="minAlarmCount=='0'">Only show alarmed events</a>
</div>
</ion-content>
</ion-popover-view>
diff --git a/www/templates/events.html b/www/templates/events.html
index 58ed0eca..37161fa7 100644
--- a/www/templates/events.html
+++ b/www/templates/events.html
@@ -34,9 +34,10 @@
<!-- lets make sure the events list is not empty as collection repeat needs height -->
+
<div ng-if="!eventsBeingLoaded">
<ion-list show-delete="eventList.showDelete">
- <ion-item repeat="event in events| filter:search.text" item-height="event.Event.height" id="item-{{$index}}" overflow-scroll="true">
+ <ion-item repeat="event in events| filter:search.text" item-height="event.Event.height" id="item-{{$index}}" overflow-scroll="true" ng-if="event.Event.AlarmFrames >= minAlarmCount">
<!--<span class="events-filter-on" ng-if="isEventFilterOn">Filter</span>-->