From 4160101570f9d3063973bb61aa67061e5c965c24 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Wed, 30 Jul 2014 10:44:46 +0100 Subject: [PATCH] moved got link status outside of the if so if they are not registered we can start the link process --- .../coffee/ide/dropbox/controllers/DropboxController.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/dropbox/controllers/DropboxController.coffee b/services/web/public/coffee/ide/dropbox/controllers/DropboxController.coffee index 6307516b67..afe4be5c4c 100644 --- a/services/web/public/coffee/ide/dropbox/controllers/DropboxController.coffee +++ b/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 = ->