Fix manual and instumented layout changes (force event 'resize')

This commit is contained in:
Kristóf Tóth
2018-04-20 11:09:47 +02:00
parent 5e3e619423
commit 26df194a17
21 changed files with 26 additions and 335 deletions

View File

@ -1,4 +1,4 @@
import { Component, Input, Output, OnInit } from '@angular/core';
import { Component, Input, Output, EventEmitter } from '@angular/core';
import { config } from '../config';
@Component({
@ -7,14 +7,15 @@ import { config } from '../config';
styleUrls: ['./sidebar.component.scss']
})
export class SidebarComponent implements OnInit {
@Input() @Output() layout: string;
export class SidebarComponent {
@Input() layout: string;
@Output() layoutChanged = new EventEmitter<string>();
enabledLayouts: Set<string> = config.dashboard.enabledLayouts;
constructor() {}
ngOnInit() {
}
setLayout(layout: string) {
this.layout = layout;
this.layoutChanged.emit(this.layout);
}
}