1
0
Fork 0
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:
Luke Pulverenti 2016-02-03 19:04:59 -05:00
parent cf577ba8eb
commit 5973359f39

View file

@ -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');