Sfoglia il codice sorgente

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

Henry Oswald 12 anni fa
parent
commit
4160101570

+ 1 - 1
services/web/public/coffee/ide/dropbox/controllers/DropboxController.coffee

@@ -38,10 +38,10 @@ define [
 				$timeout calculatePollTime, 60 * 1000
 				$timeout calculatePollTime, 60 * 1000
 
 
 		ide.socket.emit "getUserDropboxLinkStatus", user_id, (err, status)=>
 		ide.socket.emit "getUserDropboxLinkStatus", user_id, (err, status)=>
+			$scope.dbState.gotLinkStatus = true
 			if status.registered 
 			if status.registered 
 				calculatePollTime()
 				calculatePollTime()
 				$scope.dbState.userIsLinkedToDropbox = true
 				$scope.dbState.userIsLinkedToDropbox = true
-				$scope.dbState.gotLinkStatus = true
 				cachedState = $scope.dbState
 				cachedState = $scope.dbState
 		
 		
 		$scope.linkToDropbox = ->
 		$scope.linkToDropbox = ->