diff options
| author | lucas_nz <lucas_nz@outlook.com> | 2020-09-05 11:41:25 +1200 |
|---|---|---|
| committer | lucas_nz <lucas_nz@outlook.com> | 2020-09-05 11:41:25 +1200 |
| commit | 1139b026aedbc609189a5b3cb7ef446e1ceec09d (patch) | |
| tree | 544f5a45be850d069ee6440274eb5a5a6b0cb00c /www/templates | |
| parent | 2f565924960a7487ecc75d504bf2c7b0d4586580 (diff) | |
select event view thumbnails type, replaces enableThumbs in dev options.
Enables selection of different thumbnail types.
If gif is selected limit the number of events returned to 5 to improve load time.
Diffstat (limited to 'www/templates')
| -rw-r--r-- | www/templates/devoptions.html | 11 | ||||
| -rw-r--r-- | www/templates/events.html | 3 |
2 files changed, 7 insertions, 7 deletions
diff --git a/www/templates/devoptions.html b/www/templates/devoptions.html index 435c4c40..00361460 100644 --- a/www/templates/devoptions.html +++ b/www/templates/devoptions.html @@ -189,12 +189,13 @@ </ion-toggle> </label> - <label> - <ion-toggle ng-model="loginData.enableThumbs" toggle-class="toggle-calm"> - <span class="item-text-wrap">{{'kEnableThumbs' | translate}} - </span> - </ion-toggle> + <div class="item item-button-right"> + {{'kEnableThumbs' | translate}}: <button class="button button-calm" ng-click="selectEventViewThumbs()"> + <i class="icon ion-gear-b"></i> + </button> + <p>{{loginData.eventViewThumbs}}</p> + </div> </label> <label> diff --git a/www/templates/events.html b/www/templates/events.html index 83ee4f00..00fd0951 100644 --- a/www/templates/events.html +++ b/www/templates/events.html @@ -45,7 +45,7 @@ <i class="ion-clock"></i> {{prettifyDate(event.Event.StartTime)}} {{tzAbbr}} </span> <div class="row" style="font-size:90%;"> - <div ng-if="loginData.enableThumbs" style="margin-left: auto;margin-right: auto;"> + <div ng-if="loginData.eventViewThumbs!='none'" style="margin-left: auto;margin-right: auto;"> <img bg-color="#6C7A89" ng-src="{{constructThumbnail(event)}}" on-tap="closeIfOpen(event);openModalWithSnapshot(event)" @@ -86,7 +86,6 @@ <b> <i ng-if="event.Event.Archived=='1'" class="ion-ios-flag" style="color:red"> </i>{{event.Event.MonitorName}}</b> - <span ng-if="!loginData.enableThumbs">({{event.Event.Id}})</span> <i class="ion-images"></i> {{event.Event.Frames}} <i class="ion-ios-bell-outline"></i> {{event.Event.AlarmFrames}} <span style="font-size:80%; color:rgb(110,110,110)"> |
