mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
69110: Add EPerson and EPerson form mutually exclusive & resend search after addEPerson
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
<ds-eperson-form *ngIf="isEPersonFormShown" (submitForm)="forceUpdateEPeople()"
|
<ds-eperson-form *ngIf="isEPersonFormShown" (submitForm)="forceUpdateEPeople()"
|
||||||
(cancelForm)="isEPersonFormShown = false"></ds-eperson-form>
|
(cancelForm)="isEPersonFormShown = false"></ds-eperson-form>
|
||||||
|
|
||||||
<div class="button-row top d-flex">
|
<div *ngIf="!isEPersonFormShown" class="button-row top d-flex pb-2">
|
||||||
<button class="mr-auto btn btn-success"
|
<button class="mr-auto btn btn-success"
|
||||||
(click)="isEPersonFormShown = true">
|
(click)="isEPersonFormShown = true">
|
||||||
<i class="fas fa-plus"></i>
|
<i class="fas fa-plus"></i>
|
||||||
|
@@ -85,10 +85,7 @@ export class EPeopleRegistryComponent {
|
|||||||
public forceUpdateEPeople() {
|
public forceUpdateEPeople() {
|
||||||
this.epersonService.clearEPersonRequests();
|
this.epersonService.clearEPersonRequests();
|
||||||
this.isEPersonFormShown = false;
|
this.isEPersonFormShown = false;
|
||||||
this.updateEPeople({
|
this.search({ query: '', scope: 'name' })
|
||||||
currentPage: 1,
|
|
||||||
elementsPerPage: this.config.pageSize
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user