mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
WIP
This commit is contained in:
parent
96eccd2ecd
commit
7d9208e951
143 changed files with 1000 additions and 1008 deletions
|
@ -1,10 +1,10 @@
|
|||
import loading from '../../../components/loading/loading';
|
||||
import appRouter from '../../../components/appRouter';
|
||||
import { appRouter } from '../../../components/appRouter';
|
||||
import layoutManager from '../../../components/layoutManager';
|
||||
import libraryMenu from '../../../scripts/libraryMenu';
|
||||
import appSettings from '../../../scripts/settings/appSettings';
|
||||
import focusManager from '../../../components/focusManager';
|
||||
import connectionManager from 'jellyfin-apiclient';
|
||||
import { ConnectionManager } from 'jellyfin-apiclient';
|
||||
import globalize from '../../../scripts/globalize';
|
||||
import actionSheet from '../../../components/actionSheet/actionSheet';
|
||||
import dom from '../../../scripts/dom';
|
||||
|
@ -113,7 +113,7 @@ import '../../../elements/emby-button/emby-button';
|
|||
export default function (view, params) {
|
||||
function connectToServer(server) {
|
||||
loading.show();
|
||||
window.connectionManager.connectToServer(server, {
|
||||
ConnectionManager.connectToServer(server, {
|
||||
enableAutoLogin: appSettings.enableAutoLogin()
|
||||
}).then(function (result) {
|
||||
loading.hide();
|
||||
|
@ -145,7 +145,7 @@ import '../../../elements/emby-button/emby-button';
|
|||
|
||||
function deleteServer(server) {
|
||||
loading.show();
|
||||
window.connectionManager.deleteServer(server.Id).then(function () {
|
||||
ConnectionManager.deleteServer(server.Id).then(function () {
|
||||
loading.hide();
|
||||
loadServers();
|
||||
});
|
||||
|
@ -187,7 +187,7 @@ import '../../../elements/emby-button/emby-button';
|
|||
|
||||
function loadServers() {
|
||||
loading.show();
|
||||
window.connectionManager.getAvailableServers().then(onServersRetrieved);
|
||||
ConnectionManager.getAvailableServers().then(onServersRetrieved);
|
||||
}
|
||||
|
||||
let servers;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue