mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update sync button visibility
This commit is contained in:
parent
cf577ba8eb
commit
5973359f39
1 changed files with 5 additions and 1 deletions
|
@ -394,6 +394,10 @@
|
|||
return false;
|
||||
}
|
||||
|
||||
if (user && !user.Policy.EnableSync) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return item.SupportsSync;
|
||||
}
|
||||
|
||||
|
@ -419,7 +423,7 @@
|
|||
SupportsSync: true
|
||||
};
|
||||
|
||||
if (isAvailable(item)) {
|
||||
if (isAvailable(item, user)) {
|
||||
$('.categorySyncButton', page).removeClass('hide');
|
||||
} else {
|
||||
$('.categorySyncButton', page).addClass('hide');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue