fix(frontend): Fr/improve suspend drawer (#4189)

* fix(frontend): add missing info about the cancel url in the suspend drawer

* fix(frontend): add missing info about the cancel url in the suspend drawer
This commit is contained in:
Faton Ramadani
2024-08-06 10:48:08 +02:00
committed by GitHub
parent a1c40d7fd0
commit 5104dba631
@@ -32,7 +32,8 @@
<Section label="Prompt">
A prompt is simply an approval step that can be self-approved. To do this, include the
resume url in the returned payload of the step. The UX will automatically adapt and show the
prompt to the operator when running the flow. e.g:
prompt to the operator when running the flow. Additionally, adding the cancel url will also
render a cancel button, providing the operator with an option to cancel the step. e.g:
<Tabs selected="bun" class="pt-4">
<Tab value="bun">TypeScript (Bun)</Tab>
<Tab value="deno">TypeScript (Deno)</Tab>
@@ -49,6 +50,7 @@ export async function main() {
return {
resume: urls['resume'],
cancel: urls['cancel'],
default_args: {}, // optional, see below
enums: {} // optional, see below
}
@@ -65,6 +67,7 @@ export async function main() {
return {
resume: urls['resume'],
cancel: urls['cancel'],
default_args: {}, // optional, see below
enums: {} // optional, see below
}
@@ -80,6 +83,7 @@ def main():
urls = wmill.get_resume_urls()
return {
"resume": urls["resume"],
"cancel": urls["cancel"],
"default_args": {}, # optional, see below
"enums": {} # optional, see below
}