mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-23 08:56:29 +00:00
forgot to stop the angular interval after changing path
This commit is contained in:
parent
799e80c97a
commit
3a6ce5b5e1
1 changed files with 3 additions and 3 deletions
|
@ -1,10 +1,10 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('app').controller("SyncController", function($scope, $http, $interval, $location, users) {
|
||||
$interval(function() {
|
||||
var stop = $interval(function() {
|
||||
// todo(bradrydzewski) We should poll the user to see
|
||||
// if the sync process is complete. If no, we should
|
||||
// repeat.
|
||||
// if the sync process is complete.
|
||||
$interval.cancel(stop);
|
||||
$location.path("/");
|
||||
}, 5000);
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue