 
   viewAppended: ->
     @addSubView new InitialView
-
-    # @initiateInitialView()
-
-
-  initiateInitialView: ->
-    @replaceViewsWith
-      initialView: (action, data) =>
-        if action is 'from-repo'
-        then @initiateRepoFlowWizard()
-        else @initiateNewStackWizard data
-
-
-  initiateFollowing: (_steps, headers) ->
-
-    steps = []
-
-    _steps.forEach (step, index) =>
-      steps.push (data) =>
-        @replaceViewsWith "#{step}": {
-          callback       : steps[index+1] or @bound 'setGroupTemplate'
-          cancelCallback : steps[index-1] or @bound 'initiateInitialView'
-          index          : index+1
-          steps          : headers
-          data
-        }
-
-    return steps
-
-
-  initiateNewStackWizard: (stackTemplate) ->
-
-    steps = @initiateFollowing [
-      'stepSelectProvider'
-      'stepSetupCredentials'
-      'stepBootstrap'
-      'stepDefineStack'
-      'stepComplete'
-    ], StacksCustomViews.STEPS.CUSTOM_STACK
-
-    steps.first { stackTemplate }
-
-
-  initiateRepoFlowWizard: (stackTemplate) ->
-
-    steps = @initiateFollowing [
-      'stepSelectRepo'
-      'stepLocateFile'
-      'stepFetchTemplate'
-      'stepSetupCredentials'
-      'stepBootstrap'
-      'stepDefineStack'
-      'stepComplete'
-    ], StacksCustomViews.STEPS.REPO_FLOW
-
-    steps.first { stackTemplate }
 
 
   setGroupTemplate: (stackTemplate) ->

kd                 = require 'kd'
remote             = require('app/remote').getInstance()
StacksCustomViews  = require './stacksv2/stackscustomviews'
InitialView        = require './stacksv2/initialview'


module.exports     = class GroupStackSettingsV2 extends kd.View

  StacksCustomViews.mixin @prototype

  constructor: (options = {}, data) ->


      return new kd.NotificationView
        title: 'Setting stack template for koding is disabled'

    currentGroup.modify stackTemplates: [ stackTemplate._id ], (err) =>
      return @showError err  if err

