]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Generalized errors and validations in forms 66904/head
authorAfreen Misbah <afreen@ibm.com>
Tue, 21 Oct 2025 16:37:46 +0000 (22:07 +0530)
committerAfreen Misbah <afreen@ibm.com>
Tue, 13 Jan 2026 12:33:01 +0000 (18:03 +0530)
commit19b7bbeca04518a62e60e7c252b0d0de95c1c645
tree7de0314768650cc9b538ed9092393f441c3910cc
parentba0181c0fc1118f6199dc21db58da8ccc94ca0b7
mgr/dashboard: Generalized errors and validations in forms

Fixes https://tracker.ceph.com/issues/73901

- added a validation directive -`cdValidate` which can be use to set [invalid] form fields
- also added generic template for showing error messages in user password form
- user password form updates that

Signed-off-by: Afreen Misbah <afreen@ibm.com>
(cherry picked from commit 1cbed33eae31d8e68e3e13b4cf23374df0007509)
src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-password-form/user-password-form.component.html
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/directives.module.ts
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/validate.directive.spec.ts [new file with mode: 0644]
src/pybind/mgr/dashboard/frontend/src/app/shared/directives/validate.directive.ts [new file with mode: 0644]