overleaf/services/web/frontend/js/main/importing.js
Jakob Ackermann e959529828 Merge pull request #15129 from overleaf/mj-jpa-angular-parameters
[web] Explicitly name angular parameters

GitOrigin-RevId: 91beae68989d6c8122132b531a4338b116d87424
2023-10-16 08:04:25 +00:00

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,
}
},
])