mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
e959529828
[web] Explicitly name angular parameters GitOrigin-RevId: 91beae68989d6c8122132b531a4338b116d87424
21 lines
476 B
JavaScript
21 lines
476 B
JavaScript
import App from '../base'
|
|
App.controller('ImportingController', [
|
|
'$interval',
|
|
'$scope',
|
|
'$timeout',
|
|
'$window',
|
|
function ($interval, $scope, $timeout, $window) {
|
|
$interval(function () {
|
|
$scope.state.load_progress += 5
|
|
if ($scope.state.load_progress > 100) {
|
|
$scope.state.load_progress = 20
|
|
}
|
|
}, 500)
|
|
$timeout(function () {
|
|
$window.location.reload()
|
|
}, 5000)
|
|
$scope.state = {
|
|
load_progress: 20,
|
|
}
|
|
},
|
|
])
|