2022-02-22 15:40:08 +01:00
|
|
|
import { Injectable } from "@angular/core";
|
|
|
|
import { BehaviorSubject, Observable } from "rxjs";
|
|
|
|
|
|
|
|
@Injectable({
|
|
|
|
providedIn: "root"
|
|
|
|
})
|
|
|
|
export class QuickContactService {
|
2023-07-06 14:28:53 +02:00
|
|
|
private display: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(true);
|
2022-02-22 15:40:08 +01:00
|
|
|
|
|
|
|
public get isDisplayed(): Observable<boolean> {
|
|
|
|
return this.display.asObservable();
|
|
|
|
}
|
|
|
|
|
|
|
|
public setDisplay(display: boolean) {
|
|
|
|
this.display.next(display);
|
|
|
|
}
|
|
|
|
}
|