Skip to content

Comments

Flow Trigger Bundle: Added option to automatically refresh current item after Flow completes and also checks for unsaved changes before running.#270

Open
MarkBurvs wants to merge 1 commit intodirectus-labs:mainfrom
MarkBurvs:main
Open

Flow Trigger Bundle: Added option to automatically refresh current item after Flow completes and also checks for unsaved changes before running.#270
MarkBurvs wants to merge 1 commit intodirectus-labs:mainfrom
MarkBurvs:main

Conversation

@MarkBurvs
Copy link

Fixes #61 and #72

Features Added

1. Option to Auto-Refresh After Flow Execution

  • Give the user the option to automatically refresh current item after successful flow execution
  • New "Auto Refresh" boolean configuration option in interface settings

2. Unsaved Changes Detection

  • Detects unsaved form changes before triggering flows with auto-refresh enabled
  • Uses deep comparison (lodash-es isEqual) to avoid false positives from object reference changes
  • Shows warning dialog with "Cancel" or "Discard Changes & Continue" options

Benefits

  • Better UX: Users see flow results immediately without having to manually refresh item
  • Data Safety: Prevents accidental loss of unsaved changes

Screenshots

Auto-Refresh-Button Unsaved Changes Warning

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flow-trigger-bundle save before flow executes

1 participant