           @reset yes
           @embedBox.resetEmbedAndHide()
           @emit "Submit", err, activity
-          @destroy() if @getOptions().editMode
+          @destroy() if @getOptions().destroyOnSubmit
           @notification.show()
           callback? err, activity
     ]

      iconOnly : yes
      callback : @bound "submit"

    if options.editMode
      @cancel = new KDButtonView
        cssClass : "solid gray"
        title    : "Cancel"
        callback : @bound "cancel"

    @avatar = new AvatarView
      size      :
        width   : 35
        height  : 35
    , KD.whoami()

  cancel: ->
    @destroy()
    @emit "ActivityInputCancelled"

  submit: (callback) ->
    return  unless value = @input.getValue().trim()

    options.cssClass = KD.utils.curry "activity-input-widget", options.cssClass
    super options, data

    options.destroyOnSubmit ?= no

    @input    = new ActivityInputView defaultValue: options.defaultValue
    @input.on "Escape", @bound "reset"

