               callback   : =>
                 @mountToggle.disable()
                 @deleteRemote.showLoader()
-                @getDelegate().emit "DeleteRemote", data
+                @getDelegate().emit "DeleteRemote",
+                  mountpoint : @mountpoint
+                  remotehost : data.remotehost
+                  remoteuser : data.remoteuser
                 modal.destroy()
 
   viewAppended:->

          unless data.haspass
            @mountToggle.hideLoader()
            new AskForPassword "Password required to mount #{data.remotehost}", (password)=>
              log password
              data.remotepass = password
              @mountToggle.showLoader()
              @changeMountState {state : 'mount', data}, callback
          else
            @changeMountState {state : 'mount', data}, callback
        "Umount", (callback)=>
          @changeMountState {state : 'umount', data}, callback
      ]
      defaultState : if data.mounted then "Umount" else "Mount"
    , data

    @deleteRemote = new KDButtonView

      callback?()

  mountRemote:(mount, callback)=>
    {remotehost, haspass, remotepass, remoteuser} = mount
    args = {remotehost, remoteuser}
    args.remotepass = remotepass unless haspass
    log args
    @hideMessages()
