mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-01-15 18:41:57 +00:00
Implement changing messaging visibility from API
This commit is contained in:
parent
77e18f43e3
commit
5c0b1dbd1b
@ -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) {
|
||||
|
@ -1,4 +1,5 @@
|
||||
export class LayoutCommand {
|
||||
command: string;
|
||||
layout: string;
|
||||
hide_messages?: boolean;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user