"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/app/item-page/edit-item-page/item-relationships/edit-relationship/edit-relationship.component.ts" between
dspace-angular-dspace-7.0.tar.gz and dspace-angular-dspace-7.1.tar.gz

About: dspace-angular is the Angular-based frontend of DSpace, a digital repository system to capture, store, index, preserve and redistribute an organization’s research material in digital formats.

edit-relationship.component.ts  (dspace-angular-dspace-7.0):edit-relationship.component.ts  (dspace-angular-dspace-7.1)
skipping to change at line 82 skipping to change at line 82
constructor( constructor(
private objectUpdatesService: ObjectUpdatesService, private objectUpdatesService: ObjectUpdatesService,
private modalService: NgbModal, private modalService: NgbModal,
) { ) {
} }
/** /**
* Sets the current relationship based on the fieldUpdate input field * Sets the current relationship based on the fieldUpdate input field
*/ */
ngOnChanges(): void { ngOnChanges(): void {
if (this.relationship) { if (this.relationship && (!!this.relationship.leftItem || !!this.relationshi p.rightItem)) {
this.leftItem$ = this.relationship.leftItem.pipe( this.leftItem$ = this.relationship.leftItem.pipe(
getFirstSucceededRemoteData(), getFirstSucceededRemoteData(),
getRemoteDataPayload(), getRemoteDataPayload(),
filter((item: Item) => hasValue(item) && isNotEmpty(item.uuid)) filter((item: Item) => hasValue(item) && isNotEmpty(item.uuid))
); );
this.rightItem$ = this.relationship.rightItem.pipe( this.rightItem$ = this.relationship.rightItem.pipe(
getFirstSucceededRemoteData(), getFirstSucceededRemoteData(),
getRemoteDataPayload(), getRemoteDataPayload(),
filter((item: Item) => hasValue(item) && isNotEmpty(item.uuid)) filter((item: Item) => hasValue(item) && isNotEmpty(item.uuid))
); );
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)