mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-23 22:40:20 +08:00
Don't show 'Cut' and 'Delete' options on shared items
This commit is contained in:
parent
705b9de28c
commit
0dbc6aad0f
@ -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(){
|
||||
|
Loading…
Reference in New Issue
Block a user