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

fixes #800

parent 53c6b17b
No related branches found
No related tags found
No related merge requests found
......@@ -195,6 +195,7 @@ export class NehubaContainer implements OnInit, OnChanges, OnDestroy {
public disableOctantRemoval$: Observable<{ message?: string, mode: boolean }>
public handleViewerLoadedEvent(flag: boolean){
console.log('viewer laoded ev', flag)
this.viewerLoaded = flag
this.nehubaViewerLoaded.emit(flag)
}
......@@ -468,6 +469,20 @@ export class NehubaContainer implements OnInit, OnChanges, OnDestroy {
? state.layers?.findIndex(l => l.mixability === 'nonmixable') >= 0
: false),
)
/**
* fixes
* https://github.com/HumanBrainProject/interactive-viewer/issues/800
*/
this.subscriptions.push(
this.nehubaViewerLoaded.pipe(
debounceTime(500),
filter(v => !v),
).subscribe(() => {
this.matDrawerMain.close()
this.matDrawerMinor.close()
})
)
}
public useMobileUI$: Observable<boolean>
......
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