improved the dropbox progress bar

This commit is contained in:
Henry Oswald 2014-07-17 15:08:12 +01:00
parent b54c351956
commit c429bd1f44
2 changed files with 2 additions and 1 deletions

View file

@ -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.

View file

@ -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)=>