mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 19:31:58 +00:00
e035d526d6
Restructure frontend directories GitOrigin-RevId: 5a1224ca186f4809df45680a80d374c1c318d7bf
21 lines
443 B
JavaScript
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
|
|
}
|
|
})
|
|
})
|