From 4db6b3d79b7289717a16603c527bc0d5e3ea0594 Mon Sep 17 00:00:00 2001 From: GeckoEidechse Date: Fri, 9 Sep 2022 22:26:09 +0200 Subject: Add switch-case for performing action on button click based on UI state --- src-ui/src/main.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src-ui') 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 -- cgit v1.2.3