mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-05 07:09:02 +02:00
improved the dropbox progress bar
This commit is contained in:
@@ -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)=>
|
||||
|
||||
Reference in New Issue
Block a user