Request all

This commit is contained in:
bskjon 2025-02-23 16:48:57 +01:00
parent bf6f0faf4c
commit caab3c02c6
2 changed files with 15 additions and 2 deletions

View File

@ -41,8 +41,9 @@ class ExplorerTopic(
} }
@MessageMapping("/request/all") @MessageMapping("/request/all")
fun requestAllAvailableActions() { fun requestAllAvailableActions(@Payload data: EventRequest) {
val req = coordinatorTemplate.postForEntity("/request/all", data, String::class.java)
log.info { req }
} }
} }

View File

@ -164,9 +164,21 @@ export default function ExplorePage() {
const onContextMenuItemClickedEvent: ContextMenuActionEvent<ExplorerItem> = { const onContextMenuItemClickedEvent: ContextMenuActionEvent<ExplorerItem> = {
selected:(actionIndex: number | null, value: ExplorerItem | null) => { selected:(actionIndex: number | null, value: ExplorerItem | null) => {
if (!value) {
return;
}
switch(actionIndex) { switch(actionIndex) {
case 0: { case 0: {
console.log("All"); console.log("All");
const request = {
file: value.path,
source: `Web UI @ ${window.location.href}`,
mode: "FLOW"
}
client?.publish({
destination: "/app/request/all",
body: JSON.stringify(request)
})
break; break;
} }
case 1: { case 1: {