Fix an issue with the 'Properties' entry not always displayed in context menu

This commit is contained in:
yflory
2017-03-27 10:58:23 +02:00
parent ff60dd4399
commit 0c5a930cb9

View File

@@ -393,7 +393,8 @@ define([
// TODO: folder properties in the future?
hide.push($menu.find('a.properties'));
}
if (path && path.length > 4) {
// If we're in the trash, hide restore and properties for non-root elements
if ($menu.find('a.restore').length && path && path.length > 4) {
hide.push($menu.find('a.restore'));
hide.push($menu.find('a.properties'));
}