mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
easier user library setup
This commit is contained in:
parent
990e9a39c6
commit
22f629080c
16 changed files with 108 additions and 161 deletions
|
@ -1,10 +1,19 @@
|
|||
var LoginPage = {
|
||||
|
||||
onPageShow: function () {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var isLocalhost = window.location.toString().toLowerCase().indexOf('localhost') != -1;
|
||||
|
||||
if (isLocalhost) {
|
||||
$('.localhostMessage', this).show();
|
||||
} else {
|
||||
$('.localhostMessage', this).hide();
|
||||
}
|
||||
|
||||
// Show all users on localhost
|
||||
var promise1 = window.location.toString().toLowerCase().indexOf('localhost') == -1 ? ApiClient.getPublicUsers() : ApiClient.getUsers({ IsDisabled: false });
|
||||
var promise1 = !isLocalhost ? ApiClient.getPublicUsers() : ApiClient.getUsers({ IsDisabled: false });
|
||||
var promise2 = ApiClient.getServerConfiguration();
|
||||
|
||||
$.when(promise1, promise2).done(function (response1, response2) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue