mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-27 04:11:03 +00:00
10 lines
347 B
JavaScript
10 lines
347 B
JavaScript
'use strict';
|
|
|
|
angular.module('app').controller("SyncController", function($scope, $http, $interval, $location, users) {
|
|
var stop = $interval(function() {
|
|
// todo(bradrydzewski) We should poll the user to see if the
|
|
// sync process is complete, using the user.syncing variable.
|
|
$interval.cancel(stop);
|
|
$location.path("/");
|
|
}, 5000);
|
|
});
|