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

move usersettings to server

This commit is contained in:
Luke Pulverenti 2016-09-06 02:45:22 -04:00
parent 8fc34293c7
commit 5ec5a0d9fa
48 changed files with 1295 additions and 815 deletions

View file

@ -462,7 +462,12 @@
// Ensure this is created so that listeners of the event can get the apiClient instance
getOrAddApiClient(server, connectionMode);
events.trigger(self, 'localusersignedin', [user]);
// This allows the app to have a single hook that fires before any other
var promise = self.onLocalUserSignedIn ? self.onLocalUserSignedIn.call(self, user) : Promise.resolve();
promise.then(function () {
events.trigger(self, 'localusersignedin', [user]);
});
}
function ensureConnectUser(credentials) {