frontend: avoid fetching events.json on public interface

This commit is contained in:
nemunaire 2019-01-25 08:29:39 +01:00
parent 04b42de061
commit 2b106df669
1 changed files with 2 additions and 0 deletions

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) {