diff options
author | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-09 22:26:09 +0200 |
---|---|---|
committer | GeckoEidechse <gecko.eidechse+git@pm.me> | 2022-09-09 22:26:09 +0200 |
commit | 4db6b3d79b7289717a16603c527bc0d5e3ea0594 (patch) | |
tree | 8046c54430e0f1122f233d29f62bea4e8574df64 /src-ui | |
parent | 289f7511f9bebf2600199de11ebc4dcdbbccc93c (diff) | |
download | FlightCore-4db6b3d79b7289717a16603c527bc0d5e3ea0594.tar.gz FlightCore-4db6b3d79b7289717a16603c527bc0d5e3ea0594.zip |
Add switch-case for performing action
on button click based on UI state
Diffstat (limited to 'src-ui')
-rw-r--r-- | src-ui/src/main.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src-ui/src/main.ts b/src-ui/src/main.ts index c92ddce5..09c7f057 100644 --- a/src-ui/src/main.ts +++ b/src-ui/src/main.ts @@ -82,7 +82,11 @@ document.addEventListener("DOMContentLoaded", async function () { // return; // } - alert("TODO"); + switch (omniButtonEl.textContent) { + default: + alert("Not implemented yet"); + break; + } }); // // counter button click |