Implement changing messaging visibility from API

This commit is contained in:
Kristóf Tóth 2018-04-20 14:36:06 +02:00
parent 77e18f43e3
commit 5c0b1dbd1b
2 changed files with 5 additions and 2 deletions

View File

@ -36,10 +36,12 @@ export class DashboardComponent implements OnInit, OnDestroy {
layoutHandler(data: LayoutCommand) {
if (config.dashboard.enabledLayouts.includes(data.layout)) {
this.setLayout(data.layout);
}
else {
} else {
console.log('Invalid ide layout "' + data.layout + '" received!');
}
if (data.hide_messages != undefined) {
this.hide_messages = data.hide_messages;
}
}
setLayout(layout: string) {

View File

@ -1,4 +1,5 @@
export class LayoutCommand {
command: string;
layout: string;
hide_messages?: boolean;
}