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-05-08 16:50:39 +02:00
|
|
|
private display: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);
|
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);
|
|
|
|
}
|
|
|
|
}
|