Request all
This commit is contained in:
parent
bf6f0faf4c
commit
caab3c02c6
@ -41,8 +41,9 @@ class ExplorerTopic(
|
||||
}
|
||||
|
||||
@MessageMapping("/request/all")
|
||||
fun requestAllAvailableActions() {
|
||||
|
||||
fun requestAllAvailableActions(@Payload data: EventRequest) {
|
||||
val req = coordinatorTemplate.postForEntity("/request/all", data, String::class.java)
|
||||
log.info { req }
|
||||
}
|
||||
|
||||
}
|
||||
@ -164,9 +164,21 @@ export default function ExplorePage() {
|
||||
|
||||
const onContextMenuItemClickedEvent: ContextMenuActionEvent<ExplorerItem> = {
|
||||
selected:(actionIndex: number | null, value: ExplorerItem | null) => {
|
||||
if (!value) {
|
||||
return;
|
||||
}
|
||||
switch(actionIndex) {
|
||||
case 0: {
|
||||
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;
|
||||
}
|
||||
case 1: {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user