瀏覽代碼

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

Henry Oswald 12 年之前
父節點
當前提交
4160101570
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      services/web/public/coffee/ide/dropbox/controllers/DropboxController.coffee

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

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