 ChannelActivitySideView         = require './channelactivitysideview'
 SidebarStacksNotConfiguredPopup = require 'app/activity/sidebar/sidebarstacksnotconfiguredpopup'
 isReactivityEnabled             = require 'app/util/isReactivityEnabled'
+EnvironmentsModal               = require 'app/environment/environmentsmodal'
 
 # this file was once nice and tidy (see https://github.com/koding/koding/blob/dd4e70d88795fe6d0ea0bfbb2ef0e4a573c08999/client/Social/Activity/sidebar/activitysidebar.coffee)
 # once we merged two sidebars into one

  fetchEnvironmentData: (callback) ->

    environmentDataProvider.fetch (data) => callback data


  addStacksNotConfiguredWarning: ->

      .on 'MachineBeingDestroyed',     @bound 'invalidateWorkspaces'
      .on 'MachineBuilt',              @bound 'machineBuilt'
      .on 'StacksNotConfigured',       @bound 'addStacksNotConfiguredWarning'
      .on 'GroupStacksInconsistent',   @bound 'addGroupStacksChangedWarning'
      .on 'GroupStacksConsistent',     @bound 'hideGroupStacksChangedWarning'


    @on 'ReloadMessagesRequested',     @bound 'handleReloadMessages'
