1
|
/**
|
2
|
* Created by myrto on 11/27/17.
|
3
|
*/
|
4
|
import { Component, OnInit } from '@angular/core';
|
5
|
|
6
|
@Component ({
|
7
|
selector: 'app-metrics',
|
8
|
templateUrl: 'metrics.component.html'
|
9
|
})
|
10
|
|
11
|
export class MetricsComponent implements OnInit {
|
12
|
|
13
|
tilesView: boolean = true;
|
14
|
|
15
|
constructor() {}
|
16
|
|
17
|
ngOnInit() {
|
18
|
let body = document.getElementsByTagName('body')[0];
|
19
|
body.classList.add("top_bar_active"); //add the class
|
20
|
body.classList.remove("page_heading_active");
|
21
|
body.classList.remove("landing");
|
22
|
body.classList.add("dashboard");
|
23
|
}
|
24
|
|
25
|
changeView(view: string) {
|
26
|
this.tilesView = (view == 'tiles');
|
27
|
}
|
28
|
}
|