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