ing
This commit is contained in:
parent
69535f452d
commit
559d5a3dd8
|
@ -1,4 +1,4 @@
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit, OnDestroy } from '@angular/core';
|
||||||
|
|
||||||
import { Observable, Subscription, of } from 'rxjs';
|
import { Observable, Subscription, of } from 'rxjs';
|
||||||
import { catchError, exhaustMap, map, tap, take } from 'rxjs/operators';
|
import { catchError, exhaustMap, map, tap, take } from 'rxjs/operators';
|
||||||
|
@ -17,7 +17,7 @@ import { RPCSubscriber } from '@overflow/commons/ui/decorator/RPCSubscriber';
|
||||||
templateUrl: './home-page.component.html',
|
templateUrl: './home-page.component.html',
|
||||||
styleUrls: ['./home-page.component.scss'],
|
styleUrls: ['./home-page.component.scss'],
|
||||||
})
|
})
|
||||||
export class HomePageComponent implements OnInit {
|
export class HomePageComponent implements OnInit, OnDestroy {
|
||||||
|
|
||||||
blockedPanel = false;
|
blockedPanel = false;
|
||||||
|
|
||||||
|
@ -27,12 +27,15 @@ export class HomePageComponent implements OnInit {
|
||||||
constructor(
|
constructor(
|
||||||
private probeService: ProbeService,
|
private probeService: ProbeService,
|
||||||
) {
|
) {
|
||||||
this.probeService.subscribeNotification(this);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
this.probeService.subscribeNotification(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ngOnDestroy(): void {
|
||||||
|
this.probeService.unsubscribeNotification(this);
|
||||||
|
}
|
||||||
|
|
||||||
blockDocument() {
|
blockDocument() {
|
||||||
this.blockedDocument = true;
|
this.blockedDocument = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user