1 import {Component, OnInit, ViewChild} from '@angular/core';
2 import {ActivatedRoute} from '@angular/router';
3 import {NetService} from '@eg/core/net.service';
4 import {AuthService} from '@eg/core/auth.service';
5 import {EventGridComponent} from './event-grid.component';
8 templateUrl: 'event-log.component.html'
11 export class EventLogComponent implements OnInit {
14 @ViewChild('eventGrid', { static: true }) eventGrid: EventGridComponent;
17 private route: ActivatedRoute,
18 private net: NetService,
19 private auth: AuthService
23 // Note: if this is not supplied, the grid will show recent events
24 // across all patrons, which may be a neat feature...
25 // TODO: see if we're honoring VIEW_USER permission and patron opt-in
26 this.patronId = +this.route.snapshot.paramMap.get('patron');