Skip to content
Snippets Groups Projects
Commit 461c567a authored by Xiao Gui's avatar Xiao Gui Committed by xgui3783
Browse files

bugfix: fixing onhoversegment context menu always show

parent 774beaa0
No related branches found
No related tags found
No related merge requests found
...@@ -165,13 +165,13 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit { ...@@ -165,13 +165,13 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit {
state.mouseOverSegment.constructor === Number ? state.mouseOverSegment.constructor === Number ?
state.mouseOverSegment.toString() : state.mouseOverSegment.toString() :
state.mouseOverSegment.name : state.mouseOverSegment.name :
'' : null :
''), null),
distinctUntilChanged() distinctUntilChanged()
), ),
this.onhoverLandmark$ this.onhoverLandmark$
).pipe( ).pipe(
map(([segment, onhoverLandmark]) => onhoverLandmark ? '' : segment ) map(([segment, onhoverLandmark]) => onhoverLandmark ? null : segment )
) )
} }
......
...@@ -158,9 +158,9 @@ ...@@ -158,9 +158,9 @@
{{ onhoverLandmark$ | async }} <i><small class = "mute-text">{{ toggleMessage }}</small></i> {{ onhoverLandmark$ | async }} <i><small class = "mute-text">{{ toggleMessage }}</small></i>
</div> </div>
<div <div
*ngIf = "(onhoverSegment$ | async) !== ''" *ngIf = "onhoverSegment$ | async as onhoverSegment "
contextualBlock> contextualBlock>
{{ onhoverSegment$ | async }} <i><small class = "mute-text">{{ toggleMessage }}</small></i> {{ onhoverSegment }} <i><small class = "mute-text">{{ toggleMessage }}</small></i>
</div> </div>
<!-- TODO Potentially implementing plugin contextual info --> <!-- TODO Potentially implementing plugin contextual info -->
</div> </div>
......
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