glpi icon indicating copy to clipboard operation
glpi copied to clipboard

feat(forms): add unsaved changes tracking and save-and-preview functionality to form editor

Open ccailly opened this issue 1 year ago • 2 comments

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.

ccailly avatar May 28 '24 14:05 ccailly

Can you confirm this behavior is OK for you @orthagh ?

AdrienClairembault avatar Jun 24 '24 12:06 AdrienClairembault

Seen with @orthagh IRL, it's OK for him.

AdrienClairembault avatar Jun 24 '24 14:06 AdrienClairembault