message: Do not save if already saving
diff: @@ -13,6 +13,9 @@ module.exports = class AddBlockView extends Backbone.View
  'click .js-choose': 'choose'
  'click .js-button': 'save'
  + initialize: ->
  + @state = new Backbone.Model saving: false
  +
  onInput: (e) ->
  @checkInput()
  @@ -58,10 +61,13 @@ module.exports = class AddBlockView extends Backbone.View
  false
  save: ->
  + return false if @state.get('saving')
  +
  val = @dom.input.val().trim()
  return if val is ''
  + @state.set saving: true
  @dom.button.text 'Adding'
  attrs = if isURL val
  @@ -77,11 +83,13 @@ module.exports = class AddBlockView extends Backbone.View
  @dom.button.text 'Added'
  @dom.input.val ''
  @dom.input.focus()
  + @state.set saving: false
  @checkInput()
  setTimeout (=> @dom.button.text 'Add block'), 2000
  error: (_m, e) =>
  console.error e
  + @state.set saving: false
  @dom.button.text 'Error'
  setTimeout (=> @dom.button.text 'Add block'), 2000
  