 
   link: (provider) ->
 
-    @loaders[provider].show()
+    { loader, toggle, title } = @getDetails provider
+
+    loader.show()
 
     options  = { provider }
-    redirect = =>
+    redirect = ->
       kd.singletons.oauthController.redirectToOauthUrl options
       new kd.NotificationView
-        title    : "Redirecting to #{@providers[provider]}..."
+        title    : "Redirecting to #{title}..."
         duration : 0
 
     if provider is 'github' and isAdmin()
       group = getGroup()
-      group.fetchDataAt ORG_TOKEN, (err, token) =>
+      group.fetchDataAt ORG_TOKEN, (err, token) ->
         return redirect()  if err or token
 
         scope = TEAM_SCOPE
         cc = kd.singletons.computeController
-        cc.ui.askFor 'enableTeamOAuth', { scope }, (status) =>
+        cc.ui.askFor 'enableTeamOAuth', { scope }, (status) ->
           if status.cancelled
-            @switches[provider].setOff no
-            @loaders[provider].hide()
+            toggle.setOff no
+            loader.hide()
           else
             options.scope = scope  if status.confirmed
             redirect()


      @supportedProviders.forEach (provider) =>

        @linked[provider] = foreignAuth?[provider]?
        @switches[provider].setDefaultValue @linked[provider]
        @switches[provider].makeEnabled()
        @loaders[provider].hide()

        @linkedData[provider] = foreignAuth?[provider] ? {}

        if @linked[provider] and scope = foreignAuth[provider].scope
          scope = scope.replace /,/g, ', '
          @scopes[provider].updatePartial scope
          @scopes[provider].setTooltip
            title: "Scopes: #{scope}"
          @scopes[provider].show()
          @tokens[provider].updatePartial "
            #{@providers[provider]} Integration
            <cite>COPY TOKEN</cite>
            <token>#{@linkedData[provider].token}</token>
          "
        else
          @scopes[provider].unsetTooltip()
          @scopes[provider].hide()
          @tokens[provider].updatePartial "#{@providers[provider]} Integration"

      do callback


        cssClass: 'scope hidden'
        partial: ''

      @containers[provider].addSubView @toggles[provider]

      @containers[provider].addSubView @loaders[provider] = @getLoaderView()

