mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
add check for multiserver on login page
This commit is contained in:
parent
f83bd20fa9
commit
38e3861e85
@ -1,4 +1,4 @@
|
||||
define(["appSettings", "dom", "connectionManager", "loading", "cardStyle", "emby-checkbox"], function(appSettings, dom, connectionManager, loading) {
|
||||
define(["apphost", "appSettings", "dom", "connectionManager", "loading", "cardStyle", "emby-checkbox"], function(appHost, appSettings, dom, connectionManager, loading) {
|
||||
"use strict";
|
||||
|
||||
function authenticateUserByName(page, apiClient, username, password) {
|
||||
@ -140,6 +140,9 @@ define(["appSettings", "dom", "connectionManager", "loading", "cardStyle", "emby
|
||||
|
||||
view.addEventListener("viewshow", function(e) {
|
||||
loading.show();
|
||||
if (!appHost.supports('multiserver')) {
|
||||
view.querySelector(".btnSelectServer").classList.add("hide");
|
||||
}
|
||||
var apiClient = getApiClient();
|
||||
apiClient.getPublicUsers().then(function(users) {
|
||||
if (users.length) {
|
||||
|
@ -47,7 +47,7 @@
|
||||
<span>${ButtonForgotPassword}</span>
|
||||
</button>
|
||||
|
||||
<a is="emby-linkbutton" href="selectserver.html" class="raised block">
|
||||
<a is="emby-linkbutton" href="selectserver.html" class="raised block btnSelectServer">
|
||||
<span>${ButtonChangeServer}</span>
|
||||
</a>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user