   ###
   renameSnapshot: ->
 
-    label        = @editView.edit.getValue()
+    label        = @editInput.getValue()
     data         = @getData()
     {snapshotId} = data
 

  initViews: ->

    data = @getData()
    @editView = new kd.View
      cssClass: 'edit hidden'

    @editView.addSubView @editView.edit = new kd.HitEnterInputView
      type        : 'text'
      placeholder : 'Snapshot Name'
      cssClass    : 'label'
      callback    : @bound 'renameSnapshot'

    @editView.addSubView wrapper = new kd.CustomHTMLView
      cssClass: 'buttons'

    wrapper.addSubView @editView.renameBtn = new kd.ButtonView
      title    : 'rename'
      cssClass : 'solid green compact rename'
      callback : @bound 'renameSnapshot'

    wrapper.addSubView @editView.cancelBtn = new kd.View
      partial  : 'cancel'
      tagName  : 'span'
      tagName  : 'span'
      cssClass : 'cancel'
      click    : @bound 'toggleEditable'

    @infoView = new kd.View
      cssClass: 'info'

    @infoView.addSubView @infoView.labelView = new kd.View
      tagName  : 'span'
      cssClass : 'label'
      click    : @bound 'toggleEditable'

    @infoView.addSubView @infoView.storageSizeView = new kd.View
      tagName  : 'span'
      cssClass : 'storage-size'

    @infoView.addSubView @infoView.createdAtView = new kd.View
      tagName  : 'span'
      cssClass : 'created-at'

    @infoView.addSubView wrapper = new kd.CustomHTMLView
      cssClass: 'buttons'

    wrapper.addSubView @infoView.renameSnapshotBtn = new kd.ButtonView
      iconOnly : true
      cssClass : 'rename'
      callback : @bound 'toggleEditable'

    wrapper.addSubView @infoView.deleteSnapshotBtn = new kd.ButtonView
      iconOnly : true
      cssClass : 'delete'
      callback : @bound "confirmDeleteSnapshot"

    @addSubView @editView
    @addSubView @infoView


  ###*

          return

        rename snapshot


  ###*
