|
|
@ -206,12 +206,16 @@ function fileExplorer (localRegistry, files, menuItems) { |
|
|
|
) |
|
|
|
) |
|
|
|
} |
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|
|
|
|
// extracts first two folders
|
|
|
|
|
|
|
|
const firstTwoFolders = key.substring(0, key.indexOf('/', key.indexOf('/', 1) + 1)) |
|
|
|
|
|
|
|
if (!provider.isExternalFolder(firstTwoFolders)) { |
|
|
|
actions['Rename'] = () => { |
|
|
|
actions['Rename'] = () => { |
|
|
|
if (self.files.isReadOnly(key)) { return tooltip('cannot rename folder. ' + self.files.type + ' is a read only explorer') } |
|
|
|
if (self.files.isReadOnly(key)) { return tooltip('cannot rename folder. ' + self.files.type + ' is a read only explorer') } |
|
|
|
var name = label.querySelector('span[data-path="' + key + '"]') |
|
|
|
var name = label.querySelector('span[data-path="' + key + '"]') |
|
|
|
if (name) editModeOn(name) |
|
|
|
if (name) editModeOn(name) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
actions['Delete'] = () => { |
|
|
|
actions['Delete'] = () => { |
|
|
|
if (self.files.isReadOnly(key)) { return tooltip('cannot delete folder. ' + self.files.type + ' is a read only explorer') } |
|
|
|
if (self.files.isReadOnly(key)) { return tooltip('cannot delete folder. ' + self.files.type + ' is a read only explorer') } |
|
|
|
modalDialogCustom.confirm('Confirm to delete a folder', 'Are you sure you want to delete this folder?', () => { files.remove(key) }, () => {}) |
|
|
|
modalDialogCustom.confirm('Confirm to delete a folder', 'Are you sure you want to delete this folder?', () => { files.remove(key) }, () => {}) |
|
|
|