From 12eb66210be1ba3d9341b8c3821c722bc017e074 Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Tue, 24 Nov 2020 23:13:15 -0500 Subject: [PATCH 1/2] Fix fetcher settings html import --- src/components/imageOptionsEditor/imageOptionsEditor.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/components/imageOptionsEditor/imageOptionsEditor.js b/src/components/imageOptionsEditor/imageOptionsEditor.js index a220a65c5d..8b6b8fc99e 100644 --- a/src/components/imageOptionsEditor/imageOptionsEditor.js +++ b/src/components/imageOptionsEditor/imageOptionsEditor.js @@ -11,6 +11,7 @@ import dialogHelper from '../dialogHelper/dialogHelper'; import '../../elements/emby-checkbox/emby-checkbox'; import '../../elements/emby-select/emby-select'; import '../../elements/emby-input/emby-input'; +import template from './imageOptionsEditor.template.html'; function getDefaultImageConfig(itemType, type) { return { @@ -90,9 +91,6 @@ import '../../elements/emby-input/emby-input'; } async function showEditor(itemType, options, availableOptions) { - const response = await fetch('components/imageOptionsEditor/imageOptionsEditor.template.html'); - const template = await response.text(); - const dlg = dialogHelper.createDialog({ size: 'small', removeOnClose: true, From 001559ee950b193d986326fb613e3c1312b710ef Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Wed, 25 Nov 2020 14:28:41 -0500 Subject: [PATCH 2/2] Remove unneeded async --- src/components/imageOptionsEditor/imageOptionsEditor.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/imageOptionsEditor/imageOptionsEditor.js b/src/components/imageOptionsEditor/imageOptionsEditor.js index 8b6b8fc99e..fb3a72b853 100644 --- a/src/components/imageOptionsEditor/imageOptionsEditor.js +++ b/src/components/imageOptionsEditor/imageOptionsEditor.js @@ -90,7 +90,7 @@ import template from './imageOptionsEditor.template.html'; }); } - async function showEditor(itemType, options, availableOptions) { + function showEditor(itemType, options, availableOptions) { const dlg = dialogHelper.createDialog({ size: 'small', removeOnClose: true,