blob: e2759b2e66b573f9176e7c1b3d9d7f19ea775be4 [file] [log] [blame]
Radek Krejcid23f0df2017-08-31 16:34:49 +02001import { Component } from '@angular/core';
Radek Krejci2b510682018-04-27 14:31:39 +02002import {Router} from '@angular/router';
3
4import {SessionsService} from './config/sessions.service';
Radek Krejcid23f0df2017-08-31 16:34:49 +02005
6@Component({
7 selector : 'netopeer-dashboard',
8 templateUrl : './dashboard.component.html',
Radek Krejci2b510682018-04-27 14:31:39 +02009 styleUrls : ['./netopeer.scss', 'inventory/inventory.component.scss']
Radek Krejcid23f0df2017-08-31 16:34:49 +020010})
11
Radek Krejci2b510682018-04-27 14:31:39 +020012export class DashboardComponent {
13
14 constructor(public sessionsService: SessionsService,
15 private router: Router) {}
16
17 gotoConfig(session) {
18 this.sessionsService.changeActiveSession(session.key);
19 this.router.navigateByUrl('/netopeer/config');
20 }
21}