mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-20 04:18:19 -07:00
add default
This commit is contained in:
parent
8b96577fba
commit
6982176c67
@ -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);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user