-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Created separate ePerson pages for create/edit #2391
Created separate ePerson pages for create/edit #2391
Conversation
- Use the same methods to retrieve the access-control urls - Fix EPersonDataService.startEditingNewEPerson returning the incorrect link
Hi @alexandrevryghem, |
…-administration-page_contribute-maintenance-7.6 # Conflicts: # src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html
4877f54
to
a419956
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks @alexandrevryghem for this PR
overall it's working fine, i've just added a tiny minor inline comment and a small improvement to ask.
In order to uniform the eperson/group edit page route to the other dspace object edit page routes, i'd suggest to add /edit
at the end of the route.
I mean instead of having
http://localhost:4000/access-control/epeople/a7a17d82-c812-494d-a1a7-43ef88f49eb9
we should have
http://localhost:4000/access-control/epeople/a7a17d82-c812-494d-a1a7-43ef88f49eb9/edit
src/app/access-control/epeople-registry/epeople-registry.component.ts
Outdated
Show resolved
Hide resolved
…o translation file
…split-eperson-administration-page_contribute-maintenance-7.6
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks @alexandrevryghem
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks @alexandrevryghem ! Tested this as well and it works to fix both the linked issues. No new issues found. Code looks good as well.
Ported to |
References
Description
This PR fixes the eperson/epeople administration tab not having a separate url for the create & edit pages. I also fixed other minor bugs related to these pages.
Instructions for Reviewers
List of changes in this PR:
AccessControlRoutingModule
for the create & edit pagesEPersonFormComponent
onEPeopleRegistryComponent
and replaced buttons to redirect to the correct new routes{dspaceObjectType}/create
EPersonDataService.startEditingNewEPerson
method returned the wrong url, it returned the EPeople overview page instead of the edit EPerson tabEPersonFormComponent
&EPeopleRegistryComponent
&GroupFormComponent
should be hidden when the user doesn't have enough permissions to delete it instead of just disabling it (this is how the other buttons in the application behave)EPersonFormComponent
buttonsGuidance for how to test/review this PR:
Checklist
yarn lint
yarn check-circ-deps
)package.json
), I've made sure their licenses align with the DSpace BSD License based on the Licensing of Contributions documentation.