Fix deletion from anon drive
parent
e31ddda8f5
commit
2f7e8fba79
www/common
|
@ -3902,8 +3902,8 @@ define([
|
|||
};
|
||||
|
||||
if (!APP.loggedIn) {
|
||||
$contextMenu.find('.cp-app-drive-context-delete').text(Messages.fc_remove)
|
||||
.attr('data-icon', 'fa-eraser');
|
||||
$contextMenu.find('.cp-app-drive-context-delete').attr('data-icon', faDelete)
|
||||
.html($contextMenu.find('.cp-app-drive-context-remove').html());
|
||||
}
|
||||
var deleteOwnedPaths = function (paths, pathsList) {
|
||||
pathsList = pathsList || [];
|
||||
|
|
|
@ -731,6 +731,7 @@ define([
|
|||
// from inside a folder we're trying to delete
|
||||
resolved.main.forEach(function (p) {
|
||||
var el = uo.find(p);
|
||||
if (p[0] === UserObject.FILES_DATA) { return; }
|
||||
if (uo.isFile(el) || uo.isSharedFolder(el)) { return; }
|
||||
var arr = [];
|
||||
uo.getFilesRecursively(el, arr);
|
||||
|
|
Loading…
Reference in New Issue