fixed multiple default imports missing

Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
vitorsemeano 2020-11-08 12:26:11 +00:00 committed by GitHub
parent b2fb40e23b
commit 2243b35311
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View file

@ -570,7 +570,7 @@ import toast from './toast/toast';
recordingEditor.show(item.Id, serverId).then(resolve, reject);
});
} else if (item.Type === 'SeriesTimer') {
import('./recordingcreator/seriesrecordingeditor').then((recordingEditor) => {
import('./recordingcreator/seriesrecordingeditor').then(({default: recordingEditor}) => {
recordingEditor.show(item.Id, serverId).then(resolve, reject);
});
} else {

View file

@ -3190,7 +3190,7 @@ class PlaybackManager {
};
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, 'ServerRestarting', self.setDefaultPlayerActive.bind(self));
});

View file

@ -164,7 +164,7 @@ function onManageRecordingClick(e) {
}
const self = this;
import('./recordingeditor').then((recordingEditor) => {
import('./recordingeditor').then(({default: recordingEditor}) => {
recordingEditor.show(self.TimerId, options.serverId, {
enableCancel: false
}).then(function () {

View file

@ -7,7 +7,7 @@ import { Events } from 'jellyfin-apiclient';
import { playbackManager } from '../playback/playbackmanager';
import timeSyncManager from './timeSyncManager';
import toast from '../toast/toast';
import globalize from '../../scripts//globalize';
import globalize from '../../scripts/globalize';
import ServerConnections from '../ServerConnections';
/**

View file

@ -145,7 +145,7 @@ export default function (page, providerId, options) {
function onSelectPathClick(e) {
const page = $(e.target).parents('.xmltvForm')[0];
import('../directorybrowser/directorybrowser').then((directoryBrowser) => {
import('../directorybrowser/directorybrowser').then(({default: directoryBrowser}) => {
const picker = new directoryBrowser();
picker.show({
includeFiles: true,

View file

@ -72,7 +72,7 @@ import confirm from '../../components/confirm/confirm';
}
function renameVirtualFolder(page, virtualFolder) {
import('../../components/prompt/prompt').then((prompt) => {
import('../../components/prompt/prompt').then(({default: prompt}) => {
prompt({
label: globalize.translate('LabelNewName'),
confirmText: globalize.translate('ButtonRename')

View file

@ -5,7 +5,7 @@ function reload(context, itemId) {
loading.show();
if (itemId) {
import('../components/metadataEditor/metadataEditor').then((metadataEditor) => {
import('../components/metadataEditor/metadataEditor').then(({ default: metadataEditor }) => {
metadataEditor.embed(context.querySelector('.editPageInnerContent'), itemId, ApiClient.serverInfo().Id);
});
} else {

View file

@ -103,7 +103,7 @@ function submitForm(page) {
}
function getDetectedDevice() {
return import('../components/tunerPicker').then((tunerPicker) => {
return import('../components/tunerPicker').then(({default: tunerPicker}) => {
return new tunerPicker().show({
serverId: ApiClient.serverId()
});