diff options
Diffstat (limited to 'src/pybind/mgr/dashboard/frontend/src/app/shared/services/telemetry-notification.service.ts')
-rw-r--r-- | src/pybind/mgr/dashboard/frontend/src/app/shared/services/telemetry-notification.service.ts | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/pybind/mgr/dashboard/frontend/src/app/shared/services/telemetry-notification.service.ts b/src/pybind/mgr/dashboard/frontend/src/app/shared/services/telemetry-notification.service.ts new file mode 100644 index 000000000..fcb2e0264 --- /dev/null +++ b/src/pybind/mgr/dashboard/frontend/src/app/shared/services/telemetry-notification.service.ts @@ -0,0 +1,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); + } +} |