From 81799dd18fd2f369c316f2b0b0d9cc7b09753284 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Mon, 18 Dec 2017 15:09:44 -0500 Subject: #570 added API upgrade warning for full feature --- www/js/MomentCtrl.js | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'www/js/MomentCtrl.js') diff --git a/www/js/MomentCtrl.js b/www/js/MomentCtrl.js index a52e5466..60b78c5a 100644 --- a/www/js/MomentCtrl.js +++ b/www/js/MomentCtrl.js @@ -505,11 +505,24 @@ angular.module('zmApp.controllers').controller('zmApp.MomentCtrl', ['$scope', '$ moments = objSort(moments, [sortCondition, ascordesc], ["dateObject", true]); } - $scope.moments = moments; + if (moments.length && !moments[0].Event.MaxScoreFramed) { + $ionicPopup.alert({ + title: $translate.instant('kNote'), + template: "{{'kApiUpgrade' | translate }}", + okText: $translate.instant('kButtonOk'), + cancelText: $translate.instant('kButtonCancel'), + }); + } + + else { + $scope.moments = moments; $timeout(function () { initMasonry(); }, 300); + } + + /* if (sortCondition == "MonitorId") { moments.sort(function(a, b) { var da = a.Event.MonitorId; -- cgit v1.2.3