mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
hide library monitor from certain operating systems
This commit is contained in:
parent
a651d5208d
commit
2ebea85514
7 changed files with 22 additions and 15 deletions
|
@ -56,6 +56,15 @@
|
|||
var page = this;
|
||||
|
||||
$('.librarySettingsForm').off('submit', onSubmit).on('submit', onSubmit);
|
||||
|
||||
ApiClient.getSystemInfo().done(function (systemInfo) {
|
||||
|
||||
if (systemInfo.SupportsLibraryMonitor) {
|
||||
page.querySelector('.fldLibraryMonitor').classList.remove('hide');
|
||||
} else {
|
||||
page.querySelector('.fldLibraryMonitor').classList.add('hide');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
})(jQuery, document, window);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue