moved got link status outside of the if so if they are not registered we can start the link process

This commit is contained in:
Henry Oswald
2014-07-30 10:44:46 +01:00
parent 87aa860c87
commit 4160101570
@@ -38,10 +38,10 @@ define [
$timeout calculatePollTime, 60 * 1000
ide.socket.emit "getUserDropboxLinkStatus", user_id, (err, status)=>
$scope.dbState.gotLinkStatus = true
if status.registered
calculatePollTime()
$scope.dbState.userIsLinkedToDropbox = true
$scope.dbState.gotLinkStatus = true
cachedState = $scope.dbState
$scope.linkToDropbox = ->