blob: e2759b2e66b573f9176e7c1b3d9d7f19ea775be4 [file] [log] [blame]
import { Component } from '@angular/core';
import {Router} from '@angular/router';
import {SessionsService} from './config/sessions.service';
@Component({
selector : 'netopeer-dashboard',
templateUrl : './dashboard.component.html',
styleUrls : ['./netopeer.scss', 'inventory/inventory.component.scss']
})
export class DashboardComponent {
constructor(public sessionsService: SessionsService,
private router: Router) {}
gotoConfig(session) {
this.sessionsService.changeActiveSession(session.key);
this.router.navigateByUrl('/netopeer/config');
}
}