summaryrefslogtreecommitdiffstats
path: root/src/pybind/mgr/dashboard/frontend/src/app/shared/services/telemetry-notification.service.ts
blob: fcb2e026462e3c38bb0e7fa6cae2f57cf191c2c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import { EventEmitter, Injectable, Output } from '@angular/core';

@Injectable({
  providedIn: 'root'
})
export class TelemetryNotificationService {
  visible = false;

  @Output()
  update: EventEmitter<boolean> = new EventEmitter<boolean>();

  setVisibility(visible: boolean) {
    this.visible = visible;
    this.update.emit(visible);
  }
}