src/modules/dashboard/dashboard.js
// Helper function for reloading list of sites.
Helper function for reloading list of sites.
Helper function for reloading list of sites .
function reloadSites() {
    function reload() {
      sites.get()
      .then(function(sites) {
        $scope.ui.sites = sites;
      });
    }
    reload();
    setTimeout(reload, 1000 * 5);
    setTimeout(reload, 1000 * 15);
  }
function reloadSites ( ) { function reload ( ) { sites . get ( ) . then ( function ( sites ) { $scope . ui . sites = sites ; } ) ; } reload ( ) ; setTimeout ( reload , 1000 * 5 ) ; setTimeout ( reload , 1000 * 15 ) ; }
Helper function for reloading list of sites.
Helper function for reloading list of sites .
/*
     * Reload sites mutliple times, because sometimes updates to list of sites
     * aren't ready immediately.
     */ // Reload sites immediately. // Reload sites again after 5 seconds. // Reload sites again after 15 seconds.