 CredentialStatusView = require './credentialstatusview'
 CredentialListItem = require '../credentials/credentiallistitem'
 
-EnvironmentFlux = require 'app/flux/environment'
 ContentModal = require 'app/components/contentModal'
 createShareModal = require './createShareModal'
 isDefaultTeamStack = require 'app/util/isdefaultteamstack'

      stackTemplate.isDefault ?= stackTemplate._id in (stackTemplates or [])
      hasGroupTemplates        = stackTemplates?.length

      stacks = kd.singletons.reactor.evaluateToJS ['StacksStore']
      templateIds = Object.keys(stacks).map (key) -> stacks[key].baseStackId

      hasStack = stackTemplate._id in templateIds


  createMainButtons: ->

    { appManager, computeController } = kd.singletons
    { stackTemplate } = @getData()

    @header.addSubView @buttons = new kd.CustomHTMLView { cssClass: 'buttons' }
