add default

This commit is contained in:
grafixeyehero 2020-06-14 01:30:00 +03:00
parent 8b96577fba
commit 6982176c67

View File

@ -76,7 +76,7 @@ import recordingHelper from 'recordingHelper';
function showProgramDialog(item) { function showProgramDialog(item) {
import('recordingCreator').then((recordingCreator) => { import('recordingCreator').then(({default:recordingCreator}) => {
recordingCreator.show(item.Id, item.ServerId); recordingCreator.show(item.Id, item.ServerId);
}); });
@ -121,7 +121,7 @@ import recordingHelper from 'recordingHelper';
item.PlaylistItemId = elem ? elem.getAttribute('data-playlistitemid') : null; item.PlaylistItemId = elem ? elem.getAttribute('data-playlistitemid') : null;
} }
import('itemContextMenu').then((itemContextMenu) => { import('itemContextMenu').then(({default: itemContextMenu}) => {
connectionManager.getApiClient(item.ServerId).getCurrentUser().then(user => { connectionManager.getApiClient(item.ServerId).getCurrentUser().then(user => {
itemContextMenu.show(Object.assign({ itemContextMenu.show(Object.assign({
@ -169,7 +169,7 @@ import recordingHelper from 'recordingHelper';
const item = getItemInfoFromCard(card); const item = getItemInfoFromCard(card);
import('playMenu').then((playMenu) => { import('playMenu').then(({default: playMenu}) => {
playMenu.show({ playMenu.show({
@ -180,7 +180,7 @@ import recordingHelper from 'recordingHelper';
} }
function sendToast(text) { function sendToast(text) {
import('toast').then((toast) => { import('toast').then(({default: toast}) => {
toast(text); toast(text);
}); });
} }
@ -293,7 +293,7 @@ import recordingHelper from 'recordingHelper';
} }
function addToPlaylist(item) { function addToPlaylist(item) {
import('playlistEditor').then((playlistEditor) => { import('playlistEditor').then(({default: playlistEditor}) => {
new playlistEditor().show({ new playlistEditor().show({
items: [item.Id], items: [item.Id],
@ -322,18 +322,18 @@ import recordingHelper from 'recordingHelper';
if (item.Type === 'Timer') { if (item.Type === 'Timer') {
if (item.ProgramId) { if (item.ProgramId) {
import('recordingCreator').then((recordingCreator) => { import('recordingCreator').then(({default: recordingCreator}) => {
recordingCreator.show(item.ProgramId, serverId).then(resolve, reject); recordingCreator.show(item.ProgramId, serverId).then(resolve, reject);
}); });
} else { } else {
import('recordingEditor').then((recordingEditor) => { import('recordingEditor').then(({default: recordingEditor}) => {
recordingEditor.show(item.Id, serverId).then(resolve, reject); recordingEditor.show(item.Id, serverId).then(resolve, reject);
}); });
} }
} else { } else {
import('metadataEditor').then((metadataEditor) => { import('metadataEditor').then(({default: metadataEditor}) => {
metadataEditor.show(item.Id, serverId).then(resolve, reject); metadataEditor.show(item.Id, serverId).then(resolve, reject);
}); });