woodpecker/server/app/scripts/controllers/sync.js

11 lines
314 B
JavaScript
Raw Normal View History

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