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

apply suggestion

This commit is contained in:
grafixeyehero 2020-06-26 21:15:00 +03:00
parent 857c1d8e2a
commit 7fe80dcbf1
2 changed files with 22 additions and 25 deletions

View file

@ -306,7 +306,7 @@ import 'emby-input';
}
function showImageOptionsForType(type) {
import('imageoptionseditor').then(({default: ImageOptionsEditor}) => {
import('imageoptionseditor').then(ImageOptionsEditor => {
let typeOptions = getTypeOptions(currentLibraryOptions, type);
if (!typeOptions) {
typeOptions = {
@ -315,8 +315,7 @@ import 'emby-input';
currentLibraryOptions.TypeOptions.push(typeOptions);
}
const availableOptions = getTypeOptions(currentAvailableOptions || {}, type);
const imageOptionsEditor = new ImageOptionsEditor();
imageOptionsEditor.show(type, typeOptions, availableOptions);
new ImageOptionsEditor.showEditor(type, typeOptions, availableOptions);
});
}