From 790464f176f8e685386b0218d01593e0201b91ff Mon Sep 17 00:00:00 2001 From: Nilsen84 <56961087+Nilsen84@users.noreply.github.com> Date: Wed, 9 Aug 2023 22:45:19 +0200 Subject: [PATCH] Add shadow to agents --- gui/src/pages/Agents.svelte | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/gui/src/pages/Agents.svelte b/gui/src/pages/Agents.svelte index 03650ab..85e1747 100644 --- a/gui/src/pages/Agents.svelte +++ b/gui/src/pages/Agents.svelte @@ -41,12 +41,15 @@
{#each $config.agents as agent, i (agent.path)} -
+
agent.enabled ^= 1} + on:click={() => { + agent.enabled ^= 1 + window.dispatchEvent(new Event('change')) + }} > {agent.path.replace(/^.*[\\\/]/, '')} @@ -56,6 +59,7 @@ class="outline-none p-1 text-sm border-2 rounded mr-1" placeholder="Option" spellcheck="false" + bind:value={agent.option} >