mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
improved the dropbox progress bar
This commit is contained in:
parent
b54c351956
commit
c429bd1f44
2 changed files with 2 additions and 1 deletions
|
@ -20,7 +20,7 @@ script(type="text/ng-template", id="dropboxModalTemplate")
|
|||
|
||||
|
||||
div(ng-show="dbState.hasDropboxFeature && dbState.userIsLinkedToDropbox")
|
||||
progressbar.progress-striped.active(value='percentageLeftTillNextPoll', type="info")
|
||||
progressbar.progress-striped.active(value='dbState.percentageLeftTillNextPoll', type="info")
|
||||
span
|
||||
strong {{dbState.minsTillNextPoll}} minutes
|
||||
span until dropbox is next checked for changes.
|
||||
|
|
|
@ -35,6 +35,7 @@ define [
|
|||
|
||||
$scope.dbState.minsTillNextPoll = POLLING_INTERVAL - roundedMinsSinceLastPoll
|
||||
$scope.dbState.percentageLeftTillNextPoll = 100 - ((roundedMinsSinceLastPoll / POLLING_INTERVAL) * 100)
|
||||
console.log $scope.dbState.percentageLeftTillNextPoll
|
||||
$timeout calculatePollTime, 60 * 1000
|
||||
|
||||
ide.socket.emit "getUserDropboxLinkStatus", user_id, (err, status)=>
|
||||
|
|
Loading…
Reference in a new issue