 
   renderButton: ->
 
-    { onAddToSidebar, onRemoveFromSidebar,
+    { onAddToSidebar, onRemoveFromSidebar, canCreateStacks
       isVisibleOnSidebar, onCloneFromDashboard, template } = @props
 
     if onCloneFromDashboard and not template.isMine()
       <ItemLink
+        disabled={not canCreateStacks}
         onClick={onCloneFromDashboard}
         title='CLONE STACK' />
 

$ = require 'jquery'
kd = require 'kd'
React = require 'app/react'

isAdmin = require 'app/util/isAdmin'
whoami = require 'app/util/whoami'

  return title


ItemLink = ({ onClick, title, disabled }) ->
  className = cx 'HomeAppView--button',
    'primary': not disabled
    'inactive': disabled

  onClick = kd.noop  if disabled

  <a
    href="#"
    className={className}
    onClick={onClick}
    children={title} />
