You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
480 B
16 lines
480 B
import { Injectable } from '@angular/core';
|
|
import {BehaviorSubject} from 'rxjs';
|
|
|
|
@Injectable({
|
|
providedIn: 'root'
|
|
})
|
|
export class NavigationService {
|
|
protected refreshCount = 0;
|
|
public readonly sidebarRefresh$: BehaviorSubject<[number, boolean]> = new BehaviorSubject<[number, boolean]>([this.refreshCount, true]);
|
|
|
|
requestSidebarRefresh({ quiet = false }) {
|
|
this.refreshCount += 1;
|
|
this.sidebarRefresh$.next([this.refreshCount, quiet]);
|
|
}
|
|
}
|