mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-07-01 10:26:23 +00:00
Add sidebar component that is ready to be designed and instrumented
This commit is contained in:
@ -14,6 +14,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
||||
deploying = false;
|
||||
deploymentNotificationSubscription: Subscription;
|
||||
layout: string = config.dashboard.defaultLayout;
|
||||
layout = 'vraw-closed';
|
||||
command_handlers = {'layout': this.layoutHandler.bind(this)};
|
||||
|
||||
constructor(private deploymentNotificationService: DeploymentNotificationService,
|
||||
@ -34,7 +35,8 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
||||
layoutHandler(data: LayoutCommand) {
|
||||
if (data.layout.match('vraw-open|vraw-closed|hraw|default-open|default-closed')) {
|
||||
this.layout = data.layout;
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
console.log('Invalid webide layout "' + data.layout + '" received!');
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user