       loader         : yes
       callback       : =>
         appManager.tell 'Stacks', 'exitFullscreen'  unless @getOption 'skipFullscreen'
+        if isDefaultTeamStack stackTemplate._id
+          return EnvironmentFlux.actions.reinitStackFromWidget()
         @handleGenerateStack()
 
 

EnvironmentFlux = require 'app/flux/environment'
ContentModal = require 'app/components/contentModal'
createShareModal = require './createShareModal'

{ actions : HomeActions } = require 'home/flux'

module.exports = class StackEditorView extends kd.View

  createMainButtons: ->

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

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

