glpi
glpi copied to clipboard
feat(forms): add unsaved changes tracking and save-and-preview functionality to form editor
| Q | A |
|---|---|
| Bug fix? | no |
| New feature? | yes |
| BC breaks? | no |
| Deprecations? | no |
| Tests pass? | yes |
| Fixed tickets |
This PR solves the problem of the form preview not correctly reflecting the current state of the form in the editor due to unsaved changes. To achieve this, the preview button now saves the form before displaying it, and its text dynamically changes to “Save and Preview” if unsaved changes are detected.
Can you confirm this behavior is OK for you @orthagh ?
Seen with @orthagh IRL, it's OK for him.