mirror of
https://github.com/HeyPuter/puter.git
synced 2026-07-08 08:12:15 +00:00
Don't show 'Cut' and 'Delete' options on shared items
This commit is contained in:
+2
-3
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user