diff --git a/src/ui/regionalFeatures/singleFeatures/base/regionFeature.base.ts b/src/ui/regionalFeatures/singleFeatures/base/regionFeature.base.ts index 27c68f8e64429401e3fc7c36a095fef498e8d01c..3df5683951fafd247179e18d0be3a5f0d93862ee 100644 --- a/src/ui/regionalFeatures/singleFeatures/base/regionFeature.base.ts +++ b/src/ui/regionalFeatures/singleFeatures/base/regionFeature.base.ts @@ -49,7 +49,7 @@ export class RegionFeatureBase{ if (val === this._dataIsLoading) return this._dataIsLoading = val this.dataIsLoading$.next(val) - this.dataIsLoadingEventEmitter.next(val) + this.dataIsLoadingEventEmitter.emit(val) } get dataIsLoading(){ return this._dataIsLoading diff --git a/src/ui/regionalFeatures/singleFeatures/iEEGRecordings/iEEGRecordings/iEEGRecordings.component.ts b/src/ui/regionalFeatures/singleFeatures/iEEGRecordings/iEEGRecordings/iEEGRecordings.component.ts index 9648e856a40f8f71f81a7f415a56f3f6a4bcec3f..800249b0ece08fdce51e5185985fcdda780de3b9 100644 --- a/src/ui/regionalFeatures/singleFeatures/iEEGRecordings/iEEGRecordings/iEEGRecordings.component.ts +++ b/src/ui/regionalFeatures/singleFeatures/iEEGRecordings/iEEGRecordings/iEEGRecordings.component.ts @@ -67,6 +67,10 @@ export class IEEGRecordingsCmp extends RegionFeatureBase implements ISingleFeatu }) ) + this.sub.push( + this.dataIsLoading$.subscribe(() => this.viewChanged.emit(null)) + ) + this.onDestroyCb.push(() => { if (this.landmarksLoaded.length > 0) this.regionFeatureService.removeLandmarks(this.landmarksLoaded) })