🐛 Fix Settings/Notifications submit button always active with no changes (#9091)

The "Update Settings" button in Your Account > Settings and Notifications
was always enabled, even when the form had no changes, and clicking it
emitted a success notification despite no data being modified.

Disable the submit button when the current form data equals its initial
state, so it activates only when there are actual changes to persist.

Signed-off-by: moorsecopers99 <patellscott18@gmail.com>
Signed-off-by: Andrey Antukh <niwi@niwi.nz>
Co-authored-by: Andrey Antukh <niwi@niwi.nz>
This commit is contained in:
moorsecopers99 2026-04-24 14:24:55 +03:00 committed by GitHub
parent 38d67c8e96
commit 7e499c5e5f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 0 deletions

View File

@ -79,6 +79,7 @@
- Fix copy to be more specific [Taiga #13990](https://tree.taiga.io/project/penpot/issue/13990)
- Allow deleting the profile avatar after uploading [Github #9067](https://github.com/penpot/penpot/issues/9067)
- Fix incorrect rendering when exporting text as SVG, PNG and JPG (by @edwin-rivera-dev) [Github #8516](https://github.com/penpot/penpot/issues/8516)
- Fix Settings and Notifications "Update Settings" button enabled state when form has no changes (by @moorsecopers99) [Github #9090](https://github.com/penpot/penpot/issues/9090)
- Fix "Help & Learning" submenu vertical alignment in account menu (by @juan-flores077) [Github #9137](https://github.com/penpot/penpot/issues/9137)
- Fix plugin `addInteraction` silently rejecting `open-overlay` actions with `manualPositionLocation` [Github #8409](https://github.com/penpot/penpot/issues/8409)
- Fix typography style creation with tokenized line-height (by @juan-flores077) [Github #8479](https://github.com/penpot/penpot/issues/8479)

View File

@ -82,6 +82,7 @@
[:> fm/submit-button*
{:label (tr "dashboard.settings.notifications.submit")
:disabled (= (:data @form) (:initial @form))
:data-testid "submit-settings"
:class (stl/css :update-btn)}]]]]))

View File

@ -72,6 +72,7 @@
[:> fm/submit-button*
{:label (tr "dashboard.update-settings")
:disabled (= (:data @form) (:initial @form))
:data-testid "submit-lang-change"
:class (stl/css :btn-primary)}]]))