Skip to content

Commit 0dbc6aa

Browse files
committed
Don't show 'Cut' and 'Delete' options on shared items
1 parent 705b9de commit 0dbc6aa

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/UI/UIItem.js

+2-3
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,6 @@ function UIItem(options){
860860
})
861861
}
862862
});
863-
864863
// -------------------------------------------
865864
// Copy
866865
// -------------------------------------------
@@ -1243,7 +1242,7 @@ function UIItem(options){
12431242
// -------------------------------------------
12441243
// Cut
12451244
// -------------------------------------------
1246-
if($(el_item).attr('data-immutable') === '0'){
1245+
if($(el_item).attr('data-immutable') === '0' && !is_shared_with_me){
12471246
menu_items.push({
12481247
html: i18n('cut'),
12491248
onClick: function(){
@@ -1312,7 +1311,7 @@ function UIItem(options){
13121311
// -------------------------------------------
13131312
// Delete
13141313
// -------------------------------------------
1315-
if($(el_item).attr('data-immutable') === '0' && !is_trashed){
1314+
if($(el_item).attr('data-immutable') === '0' && !is_trashed && !is_shared_with_me){
13161315
menu_items.push({
13171316
html: i18n('delete'),
13181317
onClick: async function(){

0 commit comments

Comments
 (0)