mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-06-28 23:15:12 +00:00
Layout changes finally work from backend commands
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
<app-terminal></app-terminal>
|
||||
</div>
|
||||
<div class="tfw-sidebar">
|
||||
<app-sidebar></app-sidebar>
|
||||
<app-sidebar [layout]="layout"></app-sidebar>
|
||||
</div>
|
||||
|
||||
<div class="tfw-terminal-footer"></div>
|
||||
|
@ -33,7 +33,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
|
||||
}
|
||||
|
||||
layoutHandler(data: LayoutCommand) {
|
||||
if (data.layout in (this.enabledLayouts)) {
|
||||
if (this.enabledLayouts.has(data.layout)) {
|
||||
this.layout = data.layout;
|
||||
}
|
||||
else {
|
||||
|
Reference in New Issue
Block a user