From 0c5a930cb9a4860280104209deb75b68d087164f Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 27 Mar 2017 10:58:23 +0200 Subject: [PATCH] Fix an issue with the 'Properties' entry not always displayed in context menu --- www/drive/main.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/www/drive/main.js b/www/drive/main.js index 36c85743e..e67824202 100644 --- a/www/drive/main.js +++ b/www/drive/main.js @@ -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')); }