mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixed multiple default imports missing
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
b2fb40e23b
commit
2243b35311
8 changed files with 8 additions and 8 deletions
|
@ -570,7 +570,7 @@ import toast from './toast/toast';
|
||||||
recordingEditor.show(item.Id, serverId).then(resolve, reject);
|
recordingEditor.show(item.Id, serverId).then(resolve, reject);
|
||||||
});
|
});
|
||||||
} else if (item.Type === 'SeriesTimer') {
|
} else if (item.Type === 'SeriesTimer') {
|
||||||
import('./recordingcreator/seriesrecordingeditor').then((recordingEditor) => {
|
import('./recordingcreator/seriesrecordingeditor').then(({default: recordingEditor}) => {
|
||||||
recordingEditor.show(item.Id, serverId).then(resolve, reject);
|
recordingEditor.show(item.Id, serverId).then(resolve, reject);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -3190,7 +3190,7 @@ class PlaybackManager {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (appHost.supports('remotecontrol')) {
|
if (appHost.supports('remotecontrol')) {
|
||||||
import('../../scripts/serverNotifications').then((serverNotifications) => {
|
import('../../scripts/serverNotifications').then(({ default: serverNotifications }) => {
|
||||||
Events.on(serverNotifications, 'ServerShuttingDown', self.setDefaultPlayerActive.bind(self));
|
Events.on(serverNotifications, 'ServerShuttingDown', self.setDefaultPlayerActive.bind(self));
|
||||||
Events.on(serverNotifications, 'ServerRestarting', self.setDefaultPlayerActive.bind(self));
|
Events.on(serverNotifications, 'ServerRestarting', self.setDefaultPlayerActive.bind(self));
|
||||||
});
|
});
|
||||||
|
|
|
@ -164,7 +164,7 @@ function onManageRecordingClick(e) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const self = this;
|
const self = this;
|
||||||
import('./recordingeditor').then((recordingEditor) => {
|
import('./recordingeditor').then(({default: recordingEditor}) => {
|
||||||
recordingEditor.show(self.TimerId, options.serverId, {
|
recordingEditor.show(self.TimerId, options.serverId, {
|
||||||
enableCancel: false
|
enableCancel: false
|
||||||
}).then(function () {
|
}).then(function () {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import { Events } from 'jellyfin-apiclient';
|
||||||
import { playbackManager } from '../playback/playbackmanager';
|
import { playbackManager } from '../playback/playbackmanager';
|
||||||
import timeSyncManager from './timeSyncManager';
|
import timeSyncManager from './timeSyncManager';
|
||||||
import toast from '../toast/toast';
|
import toast from '../toast/toast';
|
||||||
import globalize from '../../scripts//globalize';
|
import globalize from '../../scripts/globalize';
|
||||||
import ServerConnections from '../ServerConnections';
|
import ServerConnections from '../ServerConnections';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -145,7 +145,7 @@ export default function (page, providerId, options) {
|
||||||
function onSelectPathClick(e) {
|
function onSelectPathClick(e) {
|
||||||
const page = $(e.target).parents('.xmltvForm')[0];
|
const page = $(e.target).parents('.xmltvForm')[0];
|
||||||
|
|
||||||
import('../directorybrowser/directorybrowser').then((directoryBrowser) => {
|
import('../directorybrowser/directorybrowser').then(({default: directoryBrowser}) => {
|
||||||
const picker = new directoryBrowser();
|
const picker = new directoryBrowser();
|
||||||
picker.show({
|
picker.show({
|
||||||
includeFiles: true,
|
includeFiles: true,
|
||||||
|
|
|
@ -72,7 +72,7 @@ import confirm from '../../components/confirm/confirm';
|
||||||
}
|
}
|
||||||
|
|
||||||
function renameVirtualFolder(page, virtualFolder) {
|
function renameVirtualFolder(page, virtualFolder) {
|
||||||
import('../../components/prompt/prompt').then((prompt) => {
|
import('../../components/prompt/prompt').then(({default: prompt}) => {
|
||||||
prompt({
|
prompt({
|
||||||
label: globalize.translate('LabelNewName'),
|
label: globalize.translate('LabelNewName'),
|
||||||
confirmText: globalize.translate('ButtonRename')
|
confirmText: globalize.translate('ButtonRename')
|
||||||
|
|
|
@ -5,7 +5,7 @@ function reload(context, itemId) {
|
||||||
loading.show();
|
loading.show();
|
||||||
|
|
||||||
if (itemId) {
|
if (itemId) {
|
||||||
import('../components/metadataEditor/metadataEditor').then((metadataEditor) => {
|
import('../components/metadataEditor/metadataEditor').then(({ default: metadataEditor }) => {
|
||||||
metadataEditor.embed(context.querySelector('.editPageInnerContent'), itemId, ApiClient.serverInfo().Id);
|
metadataEditor.embed(context.querySelector('.editPageInnerContent'), itemId, ApiClient.serverInfo().Id);
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -103,7 +103,7 @@ function submitForm(page) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getDetectedDevice() {
|
function getDetectedDevice() {
|
||||||
return import('../components/tunerPicker').then((tunerPicker) => {
|
return import('../components/tunerPicker').then(({default: tunerPicker}) => {
|
||||||
return new tunerPicker().show({
|
return new tunerPicker().show({
|
||||||
serverId: ApiClient.serverId()
|
serverId: ApiClient.serverId()
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue