1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

refactor: give variables more descriptive names

This commit is contained in:
Aimekram 2022-10-19 22:23:38 +02:00
parent e79f326c53
commit bf145a602c
3 changed files with 22 additions and 22 deletions

View file

@ -293,21 +293,21 @@ import toast from './toast/toast';
const apiClient = ServerConnections.getApiClient(serverId);
return new Promise((resolve, reject) => {
const myServerId = apiClient.serverInfo().Id;
const currentServerId = apiClient.serverInfo().Id;
if (item.Type === 'Timer') {
if (item.ProgramId) {
import('./recordingcreator/recordingcreator').then(({default: recordingCreator}) => {
recordingCreator.show(item.ProgramId, myServerId).then(resolve, reject);
recordingCreator.show(item.ProgramId, currentServerId).then(resolve, reject);
});
} else {
import('./recordingcreator/recordingeditor').then(({default: recordingEditor}) => {
recordingEditor.show(item.Id, myServerId).then(resolve, reject);
recordingEditor.show(item.Id, currentServerId).then(resolve, reject);
});
}
} else {
import('./metadataEditor/metadataEditor').then(({default: metadataEditor}) => {
metadataEditor.show(item.Id, myServerId).then(resolve, reject);
metadataEditor.show(item.Id, currentServerId).then(resolve, reject);
});
}
});