Project

General

Profile

« Previous | Next » 

Revision 57129

Finished the first version of the usage statistics pages

View differences:

metrics.component.ts
10 10

  
11 11
export class MetricsComponent implements OnInit {
12 12

  
13
  tilesView: boolean = true;
14

  
13 15
  constructor() {}
14 16

  
15
  ngOnInit() { }
17
  ngOnInit() {
18
    let body = document.getElementsByTagName('body')[0];
19
    body.classList.add("top_bar_active");   //add the class
20
  }
16 21

  
22
  changeView(view: string) {
23
    this.tilesView = (view == 'tiles');
24
  }
17 25
}

Also available in: Unified diff