mirror of
https://github.com/HeyPuter/puter
synced 2024-11-15 06:15:47 +00:00
take into account feature flags for sharing
This commit is contained in:
parent
54d248e40b
commit
88e8e33dc2
@ -782,7 +782,7 @@ function UIItem(options){
|
|||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
menu_items.push('-');
|
menu_items.push('-');
|
||||||
}
|
}
|
||||||
if(!are_trashed){
|
if(!are_trashed && (!window.user.feature_flags || window.user.feature_flags.share !== false)){
|
||||||
menu_items.push({
|
menu_items.push({
|
||||||
html: 'Share With…',
|
html: 'Share With…',
|
||||||
onClick: async function(){
|
onClick: async function(){
|
||||||
@ -1086,7 +1086,7 @@ function UIItem(options){
|
|||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
// Share With…
|
// Share With…
|
||||||
// -------------------------------------------
|
// -------------------------------------------
|
||||||
if(!is_trashed && !is_trash){
|
if(!is_trashed && !is_trash && (!window.user.feature_flags || window.user.feature_flags.share !== false)){
|
||||||
menu_items.push({
|
menu_items.push({
|
||||||
html: 'Share With…',
|
html: 'Share With…',
|
||||||
onClick: async function(){
|
onClick: async function(){
|
||||||
|
Loading…
Reference in New Issue
Block a user