From 763482db5b61f4caac74dbaa1604627f9a132e83 Mon Sep 17 00:00:00 2001 From: Nilsen84 <56961087+Nilsen84@users.noreply.github.com> Date: Wed, 9 Aug 2023 23:06:01 +0200 Subject: [PATCH] Fix agents overflow, drop handler --- gui/src/pages/Agents.svelte | 40 ++++++++++++++++++++++++++----------- 1 file changed, 28 insertions(+), 12 deletions(-) diff --git a/gui/src/pages/Agents.svelte b/gui/src/pages/Agents.svelte index 85e1747..a0f1ce0 100644 --- a/gui/src/pages/Agents.svelte +++ b/gui/src/pages/Agents.svelte @@ -1,9 +1,9 @@ -
-
+
+
-
@@ -39,7 +44,18 @@
-
+
{ + for(const file of e.dataTransfer.files) { + if(file.name.endsWith('.jar')) { + addAgent(file) + } + } + window.dispatchEvent(new Event('change')) + }} + > {#each $config.agents as agent, i (agent.path)}