]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
Merge pull request #68845 from rhcs-dashboard/fix-14295
authorAfreen Misbah <afreen@ibm.com>
Thu, 23 Jul 2026 09:48:56 +0000 (15:18 +0530)
committerGitHub <noreply@github.com>
Thu, 23 Jul 2026 09:48:56 +0000 (15:18 +0530)
mgr/dashboard: [Dashboard] Incorrect action button label "Edit User" instead of "Save" in Edit User page

Reviewed-by: Afreen Misbah <afreen@ibm.com>
1  2 
src/pybind/mgr/dashboard/frontend/src/app/ceph/pool/pool-form/pool-form.component.ts

index a63bcb58c5af987445c7f93e6c93be42accb617c,dfd02d41d266796ebe82ba232837054603890f2e..b7d7ddcce6a97455e3bbfb3d8ef9525319ed9916
@@@ -156,11 -154,11 +157,14 @@@ export class PoolFormComponent extends 
      this.editing = this.router.url.startsWith(`/pool/${URLVerbs.EDIT}`);
      this.action = this.editing ? this.actionLabels.EDIT : this.actionLabels.CREATE;
      this.resource = $localize`pool`;
+     this.submitAction = this.editing
+       ? this.actionLabels.SAVE_CHANGES
+       : `${this.action} ${_.upperFirst(this.resource)}`;
      this.authenticate();
      this.createForm();
 +    const nav = this.router.getCurrentNavigation();
 +    this.fromStorageClass = nav?.extras?.state?.['from'] === FROM_STORAGE_CLASS;
 +    this.previousPath = nav?.extras?.state?.['returnUrl'] || '/pool';
    }
  
    authenticate() {