Skip to content
Snippets Groups Projects
Commit 23217433 authored by Xiao Gui's avatar Xiao Gui
Browse files

bugfix: ieeg view change not detecting

parent 5a92f201
No related branches found
No related tags found
......@@ -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
......
......@@ -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)
})
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment