overleaf/services/web/frontend/js/main/importing.js
Alasdair Smith e035d526d6 Merge pull request #2287 from overleaf/as-frontend-rearch
Restructure frontend directories

GitOrigin-RevId: 5a1224ca186f4809df45680a80d374c1c318d7bf
2019-11-05 14:22:52 +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
}
})
})