Sidebar icons are now highlighted and focus works when instrumented from backend

This commit is contained in:
Gabor PEK
2018-04-20 09:29:16 +02:00
committed by Kristóf Tóth
parent 3e249e8582
commit 5e3e619423
4 changed files with 29 additions and 10 deletions

View File

@ -1,4 +1,4 @@
import { Component, Input, OnInit } from '@angular/core';
import { Component, Input, Output, OnInit } from '@angular/core';
import { config } from '../config';
@Component({
@ -8,10 +8,13 @@ import { config } from '../config';
})
export class SidebarComponent implements OnInit {
@Input() layout: string;
@Input() @Output() layout: string;
enabledLayouts: Set<string> = config.dashboard.enabledLayouts;
constructor() {}
ngOnInit() {
}
setLayout(layout: string) {
this.layout = layout;
}
}