Skip to content

Commit f4c74f5

Browse files
author
Naman Munet
committed
mgr/dashboard: Not able to edit user display/full name in user form
Fixes: https://tracker.ceph.com/issues/70554 Signed-off-by: Naman Munet <[email protected]>
1 parent eb4c3bf commit f4c74f5

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/pybind/mgr/dashboard/frontend/cypress/e2e/rgw/users.po.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ export class UsersPageHelper extends PageHelper {
3737
this.navigateEdit(name, false, true, null);
3838

3939
// Change the full name field
40-
cy.get('input#display_name').click().clear({ force: true }).type(new_fullname, { force: true });
40+
cy.get('input#display_name').click().clear().type(new_fullname);
4141

4242
// Change the email field
4343
cy.get('#email').click().clear().type(new_email);

src/pybind/mgr/dashboard/frontend/src/app/ceph/rgw/rgw-user-form/rgw-user-form.component.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,7 @@
8080
formControlName="display_name"
8181
name="display_name"
8282
id="display_name"
83-
[invalid]="userForm.controls.display_name.invalid && (userForm.controls.display_name.dirty)"
84-
[readonly]="editing"/>
83+
[invalid]="userForm.showError('display_name', formDir)"/>
8584
</cds-text-label>
8685
<ng-template #displayNameError>
8786
<span class="invalid-feedback"

0 commit comments

Comments
 (0)