2014-07-10 05:24:06 +00:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
angular.module('app').controller("SyncController", function($scope, $http, $interval, $location, users) {
|
2014-07-11 05:41:11 +00:00
|
|
|
var stop = $interval(function() {
|
2014-07-14 03:24:03 +00:00
|
|
|
// todo(bradrydzewski) We should poll the user to see if the
|
|
|
|
// sync process is complete, using the user.syncing variable.
|
2014-07-11 05:41:11 +00:00
|
|
|
$interval.cancel(stop);
|
2014-07-10 05:24:06 +00:00
|
|
|
$location.path("/");
|
|
|
|
}, 5000);
|
|
|
|
});
|