frontend: avoid fetching events.json on public interface
This commit is contained in:
parent
04b42de061
commit
2b106df669
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue