1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-01-09 13:36:35 -05:00
parent 7537bab562
commit d84c5a7c1d
226 changed files with 51770 additions and 4157 deletions

View file

@ -1472,13 +1472,13 @@
return stringEqualsIgnoreCase(s.Id, apiClient.serverInfo().Id);
});
if (!matchedServers.length) {
if (!matchedServers.length && !isConnectUserSupporter()) {
return {};
}
var match = matchedServers[0];
if (!match.DateLastLocalConnection) {
if (!match.DateLastLocalConnection && !isConnectUserSupporter()) {
return ApiClient.getJSON(ApiClient.getUrl('System/Endpoint')).then(function (info) {
@ -1498,6 +1498,19 @@
});
};
function isConnectUserSupporter() {
if (self.isLoggedIntoConnect()) {
var connectUser = self.connectUser();
if (connectUser && connectUser.IsSupporter) {
return true;
}
}
return false;
}
function updateDateLastLocalConnection(serverId) {
var credentials = credentialProvider.credentials();