From cda6f3974f6792cc23a6682be329dc26b8cb50a4 Mon Sep 17 00:00:00 2001 From: Andreas Venizelou Date: Wed, 4 Sep 2024 08:45:47 +0300 Subject: [PATCH] Minor debugging --- Protest/Front/deviceview.js | 2 +- Protest/Front/userview.js | 2 +- Protest/Http/Auth.cs | 6 +++--- Protest/Tasks/Issues.cs | 2 ++ 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Protest/Front/deviceview.js b/Protest/Front/deviceview.js index cda6f5c8..4cc0372b 100644 --- a/Protest/Front/deviceview.js +++ b/Protest/Front/deviceview.js @@ -907,7 +907,7 @@ class DeviceView extends View { this.liveStatsWebSockets.onopen = ()=> { this.refreshLiveStatsButton.disabled = true; - this.refreshLiveStatsButton.style.animation = "spin 2s linear infinite reverse"; + this.refreshLiveStatsButton.style.animation = "spin 1.5s linear infinite reverse"; dotPingCounter = 0; diff --git a/Protest/Front/userview.js b/Protest/Front/userview.js index 350b478f..d05889c1 100644 --- a/Protest/Front/userview.js +++ b/Protest/Front/userview.js @@ -144,7 +144,7 @@ class UserView extends View { this.liveStatsWebSockets.onopen = ()=> { this.refreshLiveStatsButton.disabled = true; - this.refreshLiveStatsButton.style.animation = "spin 2s linear infinite reverse"; + this.refreshLiveStatsButton.style.animation = "spin 1.5s linear infinite reverse"; this.AfterResize(); this.liveA.textContent = ""; diff --git a/Protest/Http/Auth.cs b/Protest/Http/Auth.cs index d9316130..cd77df88 100644 --- a/Protest/Http/Auth.cs +++ b/Protest/Http/Auth.cs @@ -358,9 +358,9 @@ private static HashSet PopulateAccessPath(string[] accessList) { break;*/ case "automation:write": - path.Add("/automation/list"); - path.Add("/automation/start"); - path.Add("/automation/stop"); + path.Add("/tasks/list"); + path.Add("/tasks/start"); + path.Add("/tasks/stop"); break; case "rbac:write": diff --git a/Protest/Tasks/Issues.cs b/Protest/Tasks/Issues.cs index d5de8235..d5cf2656 100644 --- a/Protest/Tasks/Issues.cs +++ b/Protest/Tasks/Issues.cs @@ -167,6 +167,8 @@ public static async void WebSocketHandler(HttpListenerContext ctx) { } private static void Scan() { + task.status = TaskWrapper.TaskStatus.Running; + ScanUsers(); ScanDevices(); task = null;