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
cf1ca53f9c
commit
857c1d8e2a
2 changed files with 4 additions and 4 deletions
|
@ -92,8 +92,8 @@ import 'emby-input';
|
||||||
export class editor {
|
export class editor {
|
||||||
constructor() {
|
constructor() {
|
||||||
this.show = (itemType, options, availableOptions) => {
|
this.show = (itemType, options, availableOptions) => {
|
||||||
return new Promise((resolve) => {
|
return import('text!./components/imageOptionsEditor/imageOptionsEditor.template.html').then(({default: template}) => {
|
||||||
import('text!./components/imageOptionsEditor/imageOptionsEditor.template.html').then(({default: template}) => {
|
return new Promise((resolve) => {
|
||||||
const dlg = dialogHelper.createDialog({
|
const dlg = dialogHelper.createDialog({
|
||||||
size: 'small',
|
size: 'small',
|
||||||
removeOnClose: true,
|
removeOnClose: true,
|
||||||
|
|
|
@ -364,8 +364,8 @@ import 'emby-input';
|
||||||
currentAvailableOptions = null;
|
currentAvailableOptions = null;
|
||||||
const isNewLibrary = null === libraryOptions;
|
const isNewLibrary = null === libraryOptions;
|
||||||
isNewLibrary && parent.classList.add('newlibrary');
|
isNewLibrary && parent.classList.add('newlibrary');
|
||||||
return new Promise((resolve) => {
|
return import('text!./libraryoptionseditor.template.html').then(({default: template}) => {
|
||||||
import('text!./libraryoptionseditor.template.html').then(({default: template}) => {
|
return new Promise((resolve) => {
|
||||||
parent.innerHTML = globalize.translateDocument(template);
|
parent.innerHTML = globalize.translateDocument(template);
|
||||||
populateRefreshInterval(parent.querySelector('#selectAutoRefreshInterval'));
|
populateRefreshInterval(parent.querySelector('#selectAutoRefreshInterval'));
|
||||||
const promises = [populateLanguages(parent), populateCountries(parent.querySelector('#selectCountry'))];
|
const promises = [populateLanguages(parent), populateCountries(parent.querySelector('#selectCountry'))];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue