kestra
kestra copied to clipboard
[UI] Disable save even after a cancelled change
Expected Behavior
We shouldn't be able to save a flow which has no change compared to the original one since it leads to confusion (did I change anything to the original flow ?)
Actual Behaviour
When first opening the flow, the save button is disabled but then if I type something and undo it, I'm back to the original flow and still I can save it again
Steps To Reproduce
- Open an existing flow
- Add a character
- Remove it
- You can save again your flow while there is no change
Environment Information
- Kestra Version: 0.9.0-SNAPSHOT
Example flow
No response
Should we duplicate the original flow YAML and compare it with current value to define if the button should be disabled instead of a simple boolean which never gets reset unless save ?