overleaf/services/web/public/src/main/importing.js
Ersun Warncke 985f0a97bc Merge pull request #1332 from sharelatex/ew-block-while-project-importing
block loading project while importing

GitOrigin-RevId: b96589e5cae9faf269abefd4ea732992a350e68c
2019-01-03 18:14:19 +00:00

21 lines
443 B
JavaScript

define(['base'], function(App) {
App.controller('ImportingController', 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
}
})
})