Took 11 minutes
This commit is contained in:
Tobias Hopp 2022-11-28 14:16:09 +01:00
parent 89ac831fd4
commit e181b42c6c
2 changed files with 4 additions and 2 deletions

View File

@ -59,6 +59,7 @@ Dort werden die Behälter definiert, welche in den iTender gestellt werden.<br>D
static async openSetup() { static async openSetup() {
// new // new
WebHandler.openPane(Pane.SETUP); WebHandler.openPane(Pane.SETUP);
let menuBtn = document.getElementById("menuBtn") as HTMLButtonElement; let menuBtn = document.getElementById("menuBtn") as HTMLButtonElement;
menuBtn.disabled = true; menuBtn.disabled = true;

View File

@ -26,6 +26,9 @@ document.addEventListener("DOMContentLoaded", async () => {
setupOnClickEvents(); setupOnClickEvents();
setTimeout(() => {
WebWebSocketHandler.request(RequestType.CONTAINERS).then(Setup.onContainerUpdate);
}, 1000);
setTimeout(load, 100); setTimeout(load, 100);
}); });
@ -100,8 +103,6 @@ function setupOnClickEvents() {
WebWebSocketHandler.send(payload); WebWebSocketHandler.send(payload);
} }
WebWebSocketHandler.request(RequestType.CONTAINERS).then(Setup.onContainerUpdate);
// Settings Btns // Settings Btns
const downloadDrinks = document.getElementById("settings_refreshDrinks") as HTMLButtonElement; const downloadDrinks = document.getElementById("settings_refreshDrinks") as HTMLButtonElement;