listable-object-component-loader.component.ts (dspace-angular-dspace-7.0) | : | listable-object-component-loader.component.ts (dspace-angular-dspace-7.1) | ||
---|---|---|---|---|
skipping to change at line 187 | skipping to change at line 187 | |||
[this.badges.nativeElement], | [this.badges.nativeElement], | |||
]); | ]); | |||
this.connectInputsAndOutputs(); | this.connectInputsAndOutputs(); | |||
if ((this.compRef.instance as any).reloadedObject) { | if ((this.compRef.instance as any).reloadedObject) { | |||
(this.compRef.instance as any).reloadedObject.pipe(take(1)).subscribe((rel oadedObject: DSpaceObject) => { | (this.compRef.instance as any).reloadedObject.pipe(take(1)).subscribe((rel oadedObject: DSpaceObject) => { | |||
if (reloadedObject) { | if (reloadedObject) { | |||
this.compRef.destroy(); | this.compRef.destroy(); | |||
this.object = reloadedObject; | this.object = reloadedObject; | |||
this.connectInputsAndOutputs(); | this.instantiateComponent(reloadedObject); | |||
this.contentChange.emit(reloadedObject); | this.contentChange.emit(reloadedObject); | |||
} | } | |||
}); | }); | |||
} | } | |||
} | } | |||
/** | /** | |||
* Initialize which badges should be visible in the listable component | * Initialize which badges should be visible in the listable component | |||
*/ | */ | |||
initBadges() { | initBadges() { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |