     </div>
 
 
+  showInputBox: ->
+
+    @setState
+      editNameClassName: 'GenericToggler-button hidden'
+      inputClasssName: 'kdinput text edit-name'
+
+
   inputOnBlur: (event) ->
 
     @setMachineLabel()
+    @setState
+      editNameClassName: 'GenericToggler-button'
+      inputClasssName: 'kdinput text edit-name hidden'
 
 
   inputOnKeyDown: (event) ->
 
     if event.keyCode is 13
-      @refs.inputbox.blur()
+      @input.blur()
 
 
   inputOnChange: (event) ->
 
     { value: machineLabel } = event.target
     @setState { machineLabel: machineLabel }
+    EnvironmentFlux.actions.loadExpandedMachineLabel machineLabel
 
 
   setMachineLabel: ->

  constructor: (props) ->

    super props
    @state =
      machineLabel: @props.machine.get 'label'


  onSharingToggle: (checked) ->

SharingUserList     = require './sharing/userlist'
ContentModal        = require 'app/components/contentModal'
EnvironmentFlux     = require 'app/flux/environment'
KDReactorMixin  = require 'app/flux/base/reactormixin'


module.exports = class MachineDetails extends React.Component
