Updated Controller structuring.
This commit is contained in:
@@ -19,7 +19,7 @@ let inputs = {
|
||||
|
||||
async function main() {
|
||||
setupInteractiveBehavior();
|
||||
await setupInitialValues((await apiHttp.get("/Search/Default/Outline/Filters")).data);
|
||||
await setupInitialValues((await apiHttp.get("/Search/Default/Filters")).data);
|
||||
await setupShopToggles((await apiHttp.get("/Search/Shops/Available")).data);
|
||||
|
||||
document.querySelector("#configuration .invisible").classList.remove("invisible"); // Load completed, show the UI.
|
||||
@@ -88,7 +88,7 @@ async function setupInitialValues(filters) {
|
||||
}
|
||||
|
||||
async function setupShopToggles(availableShops) {
|
||||
let disabledShops = (await apiHttp.get("/Search/Default/Outline/DisabledShops")).data;
|
||||
let disabledShops = (await apiHttp.get("/Search/Default/DisabledShops")).data;
|
||||
let shopsElem = document.getElementById("shop-checkboxes");
|
||||
availableShops.forEach(shopName => {
|
||||
let id = `${shopName}-enabled`;
|
||||
|
Reference in New Issue
Block a user