Skip to content

Commit

Permalink
Minor debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
veniware committed Sep 4, 2024
1 parent 66d0831 commit cda6f39
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Protest/Front/deviceview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion Protest/Front/userview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "";
Expand Down
6 changes: 3 additions & 3 deletions Protest/Http/Auth.cs
Original file line number Diff line number Diff line change
Expand Up @@ -358,9 +358,9 @@ private static HashSet<string> 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":
Expand Down
2 changes: 2 additions & 0 deletions Protest/Tasks/Issues.cs
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ public static async void WebSocketHandler(HttpListenerContext ctx) {
}

private static void Scan() {
task.status = TaskWrapper.TaskStatus.Running;

ScanUsers();
ScanDevices();
task = null;
Expand Down

0 comments on commit cda6f39

Please sign in to comment.