Skip to content

mgr/dashboard: [Dashboard] Incorrect action button label "Edit User" instead of "Save" in Edit User page - #68845

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-14295
Jul 23, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:fix-14295

Conversation

@pujaoshahu

@pujaoshahu pujaoshahu commented May 11, 2026 •

Copy link
Copy Markdown
Screencast.From.2026-05-13.15-28-54.mp4

Fixes: https://tracker.ceph.com/issues/76507
Signed-off-by: pujaoshahu [email protected]

Summery:
Updated submit button labels in edit forms to display "Save changes" instead of "Edit User", "Edit Pool", or "Edit Host" for better UX consistency, while keeping form titles unchanged.

Modified Files
role-form.component.ts: Added submitAction property to control submit button label by mode; edit mode uses Save changes, create mode uses Create Role.

role-form.component.html: Submit button now binds to submitAction instead of action/resource text.

role-form.component.spec.ts: Added tests for submitAction behavior in create and edit modes.

user-form.component.ts: Uses submitAction property; edit mode label updated to Save changes.

user-form.component.html: Submit button uses submitAction binding.

user-form.component.spec.ts: Added/updated tests covering submitAction behavior.

pool-form.component.ts: Uses submitAction property; edit mode label updated to Save changes.

pool-form.component.html: Submit button uses submitAction binding.

pool-form.component.spec.ts: Updated submit label test expectation for edit mode.

hosts.component.ts: Edit host modal submit button text changed to Save changes.

hosts.component.spec.ts: Updated test to match Save changes button text.

app.constants.ts: In the current workspace snapshot, there is no SAVE constant added under ActionLabelsI18n.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@pujaoshahu
pujaoshahu force-pushed the fix-14295 branch 2 times, most recently from 5398cee to e6bac4c Compare May 13, 2026 07:59
@pujaoshahu
pujaoshahu marked this pull request as ready for review May 13, 2026 08:00
@pujaoshahu
pujaoshahu requested a review from a team as a code owner May 13, 2026 08:00
@pujaoshahu
pujaoshahu requested review from aaSharma14, afreen23, cloudbehl and sagargopale2233 and removed request for cloudbehl May 13, 2026 08:00
@pujaoshahu
pujaoshahu force-pushed the fix-14295 branch 2 times, most recently from 3e29872 to 80b9e05 Compare May 13, 2026 09:57

@afreen23 afreen23 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@pujaoshahu have we covered entire dashboard ? If not we should do, as that will make things inconsistent. Thanks for the fix.

@afreen23

Copy link
Copy Markdown
Contributor

@pujaoshahu have we covered entire dashboard ? If not we should do, as that will make things inconsistent. Thanks for the fix.

@pujaoshahu can you update ?

@pujaoshahu

Copy link
Copy Markdown
Author

@pujaoshahu have we covered entire dashboard ? If not we should do, as that will make things inconsistent. Thanks for the fix.

@pujaoshahu can you update ?

I have only fixed the components mentioned in the Jira ticket. I still need to check the remaining ones.

@github-actions

github-actions Bot commented Jul 3, 2026

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@afreen23

Copy link
Copy Markdown
Contributor

Please rebase.

1 similar comment
@afreen23

Copy link
Copy Markdown
Contributor

Please rebase.

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

@github-actions

Copy link
Copy Markdown

This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved

…instead of "Save" in Edit User page

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

Signed-off-by: pujaoshahu <[email protected]>

Summary: Updated submit button labels in edit forms to display "Save" instead of "Edit User", "Edit Pool", or "Edit Host" for better UX consistency, while keeping form titles unchanged.

Modified Files
role-form.component.ts: Added submitAction property to control submit button label by mode; edit mode uses Save changes, create mode uses Create Role.

role-form.component.html: Submit button now binds to submitAction instead of action/resource text.

role-form.component.spec.ts: Added tests for submitAction behavior in create and edit modes.

user-form.component.ts: Uses submitAction property; edit mode label updated to Save changes.

user-form.component.html: Submit button uses submitAction binding.

user-form.component.spec.ts: Added/updated tests covering submitAction behavior.

pool-form.component.ts: Uses submitAction property; edit mode label updated to Save changes.

pool-form.component.html: Submit button uses submitAction binding.

pool-form.component.spec.ts: Updated submit label test expectation for edit mode.

hosts.component.ts: Edit host modal submit button text changed to Save changes.

hosts.component.spec.ts: Updated test to match Save changes button text.

app.constants.ts: In the current workspace snapshot, there is no SAVE constant added under ActionLabelsI18n.

Signed-off-by: pujaoshahu <[email protected]>
Signed-off-by: pujashahu <[email protected]>
@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Jul 22, 2026
@afreen23
afreen23 merged commit 4ecb4c8 into ceph:main Jul 23, 2026
6 checks passed
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Jul 23, 2026
@afreen23
afreen23 deleted the fix-14295 branch July 23, 2026 09:48
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 4ecb4c8e700a8de92405f2e91572e3ccfe19da47^..4ecb4c8e700a8de92405f2e91572e3ccfe19da47

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/29996851910

afreen23 added a commit to rhcs-dashboard/ceph that referenced this pull request Oct 5, 2026
…ntacle backport

Add SAVE_CHANGES label constant to ActionLabelsI18n (backported from
PR ceph#68845) required by PR ceph#70937 cherry-pick.
Cherry-pick PR ceph#70769 adds normalizeInitiators and isSubsystemAllowAllHosts
to nvmeof model required by PR ceph#71291.

Signed-off-by: Afreen Misbah <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants