Commit b974885d authored by yann300's avatar yann300

context menu fixes

parent 7fed76ae
......@@ -164,10 +164,11 @@ function fileExplorer (appAPI, files) {
contextMenu(event, {
'Rename': () => {
if (self.files.readonly) return
editModeOn(label)
var name = label.querySelector('label[data-path="' + key + '"]')
if (name) editModeOn(name)
},
'Delete': () => {
files.remove(key)
modalDialogCustom.confirm(null, 'Do you want to delete this file?', () => { files.remove(key) }, () => {})
}
})
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment