Skip to content

Commit

Permalink
Added undone cancellations
Browse files Browse the repository at this point in the history
  • Loading branch information
guillemcordoba committed Oct 19, 2023
1 parent 2f8a55d commit 91d84db
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 23 additions & 1 deletion ui/custom-elements.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"name": "undoCancellation",
"return": {
"type": {
"text": "Promise<ActionHash>"
"text": "Promise<void>"
}
},
"parameters": [
Expand Down Expand Up @@ -108,6 +108,23 @@
}
}
]
},
{
"kind": "method",
"name": "getUndoneCancellationsFor",
"return": {
"type": {
"text": "Promise<Array<ActionHash>>"
}
},
"parameters": [
{
"name": "actionHash",
"type": {
"text": "ActionHash"
}
}
]
}
],
"superclass": {
Expand Down Expand Up @@ -158,6 +175,11 @@
"name": "cancellationsFor",
"default": "new LazyHoloHashMap((cancelledHash: ActionHash) =>\n lazyLoadAndPoll(\n async () => this.client.getCancellationsFor(cancelledHash),\n 4000\n )\n )"
},
{
"kind": "field",
"name": "undoneCancellationsFor",
"default": "new LazyHoloHashMap((cancelledHash: ActionHash) =>\n lazyLoadAndPoll(\n async () => this.client.getUndoneCancellationsFor(cancelledHash),\n 4000\n )\n )"
},
{
"kind": "field",
"name": "cancellations",
Expand Down
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@holochain-open-dev/cancellations",
"version": "0.1.1",
"version": "0.1.2",
"scripts": {
"start": "vite --clearScreen false --port $UI_PORT",
"build": "npm run lint && tsc && npm run analyze -- --exclude dist",
Expand Down

0 comments on commit 91d84db

Please sign in to comment.