Materia icon indicating copy to clipboard operation
Materia copied to clipboard

1600/save draft button

Open chrissolanilla opened this issue 5 months ago • 0 comments

In this PR, I addressed an issue where, after calling Materia.CreatorCore.cancelSave(message), the text on the save draft button would remain as "Saving...," which could cause confusion for users. I added three lines of code to update the button text to "Failed to save" whenever the save action fails.

Key Changes: The save draft button text now updates to "Failed to save" when Materia.CreatorCore.cancelSave(message) is triggered.

This provides better feedback to the user, making it clear that the save attempt was unsuccessful. **Note: **The text will only update on widgets that call Materia.CreatorCore.cancelSave(message). Widgets that do not call this function should be updated when the creator attempts to save an incomplete widget.

Considerations: The text could be further improved to be more user-friendly or detailed, such as "Error saving, please try again" or "Please try again." If you prefer a more descriptive message, I can update this in a follow-up change.

chrissolanilla avatar Sep 05 '24 19:09 chrissolanilla