context menu fixes

pull/3094/head
yann300 7 years ago
parent 3e5fdabf3f
commit 7733e19359
  1. 5
      src/app/files/file-explorer.js

@ -164,10 +164,11 @@ function fileExplorer (appAPI, files) {
contextMenu(event, { contextMenu(event, {
'Rename': () => { 'Rename': () => {
if (self.files.readonly) return if (self.files.readonly) return
editModeOn(label) var name = label.querySelector('label[data-path="' + key + '"]')
if (name) editModeOn(name)
}, },
'Delete': () => { 'Delete': () => {
files.remove(key) modalDialogCustom.confirm(null, 'Do you want to delete this file?', () => { files.remove(key) }, () => {})
} }
}) })
}) })

Loading…
Cancel
Save