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-01 14:38:55 -05:00
parent 74d8bc3ef1
commit 2fe27c82da
7 changed files with 149 additions and 17 deletions

View file

@ -422,7 +422,7 @@
afterConnected(apiClient, options);
onLocalUserSignIn(result.User);
onLocalUserSignIn(server, server.LastConnectionMode, result.User);
}
function saveUserInfoIntoCredentials(server, user) {
@ -452,7 +452,10 @@
}
}
function onLocalUserSignIn(user) {
function onLocalUserSignIn(server, connectionMode, user) {
// Ensure this is created so that listeners of the event can get the apiClient instance
getOrAddApiClient(server, connectionMode);
Events.trigger(self, 'localusersignedin', [user]);
}
@ -575,7 +578,7 @@
}).then(function (user) {
onLocalUserSignIn(user);
onLocalUserSignIn(server, connectionMode, user);
resolve();
}, function () {