From 0dbc6aad0fda966591762942d858c438574d5e00 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sat, 15 Jun 2024 22:14:14 -0700 Subject: [PATCH] Don't show 'Cut' and 'Delete' options on shared items --- src/UI/UIItem.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/UI/UIItem.js b/src/UI/UIItem.js index e8618d16..a21668cf 100644 --- a/src/UI/UIItem.js +++ b/src/UI/UIItem.js @@ -860,7 +860,6 @@ function UIItem(options){ }) } }); - // ------------------------------------------- // Copy // ------------------------------------------- @@ -1243,7 +1242,7 @@ function UIItem(options){ // ------------------------------------------- // Cut // ------------------------------------------- - if($(el_item).attr('data-immutable') === '0'){ + if($(el_item).attr('data-immutable') === '0' && !is_shared_with_me){ menu_items.push({ html: i18n('cut'), onClick: function(){ @@ -1312,7 +1311,7 @@ function UIItem(options){ // ------------------------------------------- // Delete // ------------------------------------------- - if($(el_item).attr('data-immutable') === '0' && !is_trashed){ + if($(el_item).attr('data-immutable') === '0' && !is_trashed && !is_shared_with_me){ menu_items.push({ html: i18n('delete'), onClick: async function(){