Skip to content

Commit

Permalink
[147] Update cardTemplates.js
Browse files Browse the repository at this point in the history
  • Loading branch information
CollinHeist committed Dec 4, 2024
1 parent ed5a910 commit ca462db
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
22 changes: 11 additions & 11 deletions app/templates/js/cardTemplates.js
Original file line number Diff line number Diff line change
Expand Up @@ -264,13 +264,13 @@ async function getAllTemplates() {
allFonts,
allEpisodeDataSources,
allImageSources,
allFilterOptions,
// allFilterOptions,
allTranslations,
] = await Promise.all([
fetch('/api/available/fonts').then(resp => resp.json()),
fetch('/api/settings/episode-data-source').then(resp => resp.json()),
fetch('/api/settings/image-source-priority').then(resp => resp.json()),
fetch('/api/available/template-filters').then(resp => resp.json()),
// fetch('/api/available/template-filters').then(resp => resp.json()),
fetch('/api/available/translations').then(resp => resp.json()),
]);

Expand All @@ -279,15 +279,15 @@ async function getAllTemplates() {
const filterTemplate = document.getElementById('filter-template').content;
const translationTemplate = document.getElementById('translation-template').content;
// Filters arguments
const argumentMenu = filterTemplate.querySelector('.dropdown[data-value="filter-arguments"] .menu');
allFilterOptions.arguments.forEach(argument => {
addDropdownItem(argumentMenu, {innerText: argument, value: argument});
});
// Filter operations
const operationMenu = filterTemplate.querySelector('.dropdown[data-value="filter-operators"] .menu');
allFilterOptions.operations.forEach(operation => {
addDropdownItem(operationMenu, {innerText: operation, value: operation});
});
// const argumentMenu = filterTemplate.querySelector('.dropdown[data-value="filter-arguments"] .menu');
// allFilterOptions.arguments.forEach(argument => {
// addDropdownItem(argumentMenu, {innerText: argument, value: argument});
// });
// // Filter operations
// const operationMenu = filterTemplate.querySelector('.dropdown[data-value="filter-operators"] .menu');
// allFilterOptions.operations.forEach(operation => {
// addDropdownItem(operationMenu, {innerText: operation, value: operation});
// });
// Fonts
const fontMenu = htmlTemplate.querySelector('.dropdown[data-value="font_id"] .menu');
allFonts.forEach(font => {
Expand Down
2 changes: 1 addition & 1 deletion modules/ref/version_webui
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2.0-alpha.13.0-webui146
v2.0-alpha.13.0-webui147

0 comments on commit ca462db

Please sign in to comment.