Showing synchronizer notification
Change-Id: Ibc0ef77471026b48fa2e0a577adde9e43dde2a10
diff --git a/src/app/core/header/header.ts b/src/app/core/header/header.ts
index c2e4c41..06c4984 100644
--- a/src/app/core/header/header.ts
+++ b/src/app/core/header/header.ts
@@ -1,10 +1,25 @@
+import './header.scss';
import {StyleConfig} from '../../config/style.config';
+import {IStoreService} from '../../datasources/stores/slices.store';
+import {IWSEvent} from '../../datasources/websocket/global';
class HeaderController {
+ static $inject = ['SynchronizerStore'];
public title: string;
+ public notifications: IWSEvent[] = [];
- constructor() {
+ constructor(
+ private syncStore: IStoreService
+ ) {
this.title = StyleConfig.projectName;
+
+ this.syncStore.query()
+ .subscribe(
+ (event: IWSEvent) => {
+ console.log(event);
+ this.notifications.push(event);
+ }
+ );
}
}