Rebuild workspace widgets and behavioral graph views
This commit is contained in:
@@ -666,10 +666,8 @@ class OSINTListBase(ObjectList):
|
||||
request_type: str,
|
||||
) -> list[dict[str, Any]]:
|
||||
context_type = _context_type(request_type)
|
||||
update_type = "window" if request_type == "widget" else context_type
|
||||
update_target = (
|
||||
"#windows-here" if update_type == "window" else f"#{update_type}s-here"
|
||||
)
|
||||
update_type = context_type
|
||||
update_target = f"#{update_type}s-here"
|
||||
rows = []
|
||||
for item in object_list:
|
||||
row = {"id": str(item.pk), "cells": [], "actions": []}
|
||||
@@ -697,6 +695,7 @@ class OSINTListBase(ObjectList):
|
||||
"target": update_target,
|
||||
"icon": "fa-solid fa-pencil",
|
||||
"title": "Edit",
|
||||
"swap": "beforeend" if update_type == "widget" else "innerHTML",
|
||||
}
|
||||
)
|
||||
row["actions"].append(
|
||||
|
||||
Reference in New Issue
Block a user