]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
mgr/dashboard: Generalized errors and validations in forms 66378/head
authorAfreen Misbah <afreen@ibm.com>
Tue, 21 Oct 2025 16:37:46 +0000 (22:07 +0530)
committerAfreen Misbah <afreen@ibm.com>
Thu, 8 Jan 2026 22:56:17 +0000 (04:26 +0530)
commit1cbed33eae31d8e68e3e13b4cf23374df0007509
tree6b086550e30a23b81c6b78c8485627fb783f564b
parent6e7fabd003ff21be9c077e00018505401053837f
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>
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]