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

[skip ci] minor fixes

parent 00ea3904
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,6 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit {
@ViewChild('cookieAgreementComponent', {read: TemplateRef}) public cookieAgreementComponent: TemplateRef<any>
private persistentStateNotifierMatDialogRef: MatDialogRef<any>
public persistentStateNotifierMsg: string
@ViewChild('persistentStateNotifierTemplate', {read: TemplateRef}) public persistentStateNotifierTemplate: TemplateRef<any>
@ViewChild('kgToS', {read: TemplateRef}) public kgTosComponent: TemplateRef<any>
@ViewChild(LayoutMainSide) public layoutMainSide: LayoutMainSide
......@@ -368,9 +367,7 @@ export class AtlasViewer implements OnDestroy, OnInit, AfterViewInit {
)
this.subscriptions.push(
this.persistentStateNotifierMessage$.pipe(
).subscribe(msg => {
this.persistentStateNotifierMsg = msg
this.persistentStateNotifierMessage$.subscribe(msg => {
if (msg) this.persistentStateNotifierMatDialogRef = this.matDialog.open(this.persistentStateNotifierTemplate, { hasBackdrop: false, position: { top: '5px'} })
else {
if (this.persistentStateNotifierMatDialogRef) this.persistentStateNotifierMatDialogRef.close()
......
......@@ -241,6 +241,6 @@
</ng-template>
<ng-template #persistentStateNotifierTemplate>
{{persistentStateNotifierMsg}}
{{persistentStateNotifierMessage$ | async}}
</ng-template>
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