mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-08-20 16:02:19 +00:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user