mirror of
https://github.com/HeyPuter/puter.git
synced 2025-01-24 06:50:22 +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
|
// Copy
|
||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
@ -1243,7 +1242,7 @@ function UIItem(options){
|
|||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
// Cut
|
// Cut
|
||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
if($(el_item).attr('data-immutable') === '0'){
|
if($(el_item).attr('data-immutable') === '0' && !is_shared_with_me){
|
||||||
menu_items.push({
|
menu_items.push({
|
||||||
html: i18n('cut'),
|
html: i18n('cut'),
|
||||||
onClick: function(){
|
onClick: function(){
|
||||||
@ -1312,7 +1311,7 @@ function UIItem(options){
|
|||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
// Delete
|
// 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({
|
menu_items.push({
|
||||||
html: i18n('delete'),
|
html: i18n('delete'),
|
||||||
onClick: async function(){
|
onClick: async function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user