mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
apply suggestion
This commit is contained in:
parent
857c1d8e2a
commit
7fe80dcbf1
2 changed files with 22 additions and 25 deletions
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue