mgr/dashboard: [Dashboard] Incorrect action button label "Edit User" instead of "Save" in Edit User page
Reviewed-by: Afreen Misbah <afreen@ibm.com>
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() {