frontend: avoid fetching events.json on public interface

This commit is contained in:
nemunaire 2019-01-25 08:29:39 +01:00
parent e97cf884ce
commit af73b2b872

View file

@ -250,6 +250,8 @@ angular.module("FICApp", ["ngRoute", "ngSanitize"])
var refreshRate = 1200;
if ($rootScope.notify_field == 0 && eventsLastTreated)
refreshRate = 30000;
if ($scope.my && !$scope.my.team_id)
return;
refreshEventsInterval = $interval(refreshEvents, Math.floor(Math.random() * refreshRate * 2) + refreshRate);
if (!eventsLastTreated) {