69110: Add EPerson and EPerson form mutually exclusive & resend search after addEPerson

This commit is contained in:
Marie Verdonck
2020-02-28 17:07:05 +01:00
parent 48efc90531
commit 4f4c2d25ed
2 changed files with 2 additions and 5 deletions

View File

@@ -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>

View File

@@ -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
});
} }
/** /**