Skip to content

Commit

Permalink
Merge pull request DSpace#2929 from alexandrevryghem/w2p-113901_edit-…
Browse files Browse the repository at this point in the history
…item-relationships-does-not-display-tilted-relationships_contribute-main

Fixed edit item relationships tab not displaying tilted relationships
  • Loading branch information
tdonohue authored Jun 5, 2024
2 parents b02e4b1 + 280795d commit 2cfe7c0
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ describe('EditRelationshipListComponent', () => {
[relationships[0].uuid]: fieldUpdate1,
[relationships[1].uuid]: fieldUpdate2,
}),
// eslint-disable-next-line @typescript-eslint/no-empty-function
initialize: () => {
},
},
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,13 @@ export class EditRelationshipListComponent implements OnInit, OnDestroy {
...linksToFollow,
);
}),
).subscribe((rd: RemoteData<PaginatedList<Relationship>>) => {
this.relationshipsRd$.next(rd);
tap((rd: RemoteData<PaginatedList<Relationship>>) => {
this.relationshipsRd$.next(rd);
}),
getAllSucceededRemoteData(),
getRemoteDataPayload(),
).subscribe((relationshipPaginatedList: PaginatedList<Relationship>) => {
this.objectUpdatesService.initialize(this.url, relationshipPaginatedList.page, new Date());
}),
);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h4 class="modal-title" id="modal-title">{{ ('submission.sections.describe.relat
<button class="btn btn-primary submit"
[disabled]="(toAdd.length === 0 && toRemove.length === 0) || isPending"
(click)="submitEv()">
<span *ngIf="isPending" class="spinner-border spinner-border-sm" role="status"
<span *ngIf="isPending" class="spinner-border spinner-border-sm mr-1" role="status"
aria-hidden="true"></span>
<i *ngIf="!isPending" class="fas fa-save"></i>
<span class="d-none d-sm-inline">&nbsp;{{"item.edit.metadata.save-button" | translate}}</span>
Expand Down

0 comments on commit 2cfe7c0

Please sign in to comment.