extracted connectionManager from site.js
new module ServerConnections for ConnectionManager all code adapted to this new module removed Events and ConnectionManager from eslintrc
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { ConnectionManager } from 'jellyfin-apiclient';
|
||||
import globalize from '../../scripts/globalize';
|
||||
import ServerConnections from '../../components/ServerConnections';
|
||||
|
||||
function showErrorMessage() {
|
||||
return import('../../components/alert').then(({default: alert}) => {
|
||||
@@ -25,7 +25,7 @@ class PlayAccessValidation {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
return ConnectionManager.getApiClient(serverId).getCurrentUser().then(function (user) {
|
||||
return ServerConnections.getApiClient(serverId).getCurrentUser().then(function (user) {
|
||||
if (user.Policy.EnableMediaPlayback) {
|
||||
return Promise.resolve();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user