     { value } = event.target
 
     return  unless value.trim()
+    return  if @state.inProgress is yes
+
+    @setState { inProgress : yes }
 
     options =
       name          : value
       machineUId    : @props.machine.get 'uid'
       machineLabel  : @props.machine.get 'label'
+      eventObj      : this
 
     IDEHelpers.createWorkspace options
 

module.exports = class AddWorkspaceView extends React.Component

  { ESC, ENTER } = KeyboardKeys


  getDataBindings: ->

  onClick: (event) ->

    kd.utils.stopDOMEvent event


  # This method is a workaround.
  # Refactor this method when "IDEHelpers.createWorkspace" is refactored.
  # Listen result of "IDEHelpers.createWorkspace"
  emit: (eventType, error) ->

    @setState { inProgress : no }


  render: ->
