mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2025-07-09 23:46:24 +00:00
Layout changes finally work from backend commands
This commit is contained in:
@ -1,4 +1,4 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { config } from '../config';
|
||||
|
||||
@Component({
|
||||
@ -8,9 +8,10 @@ import { config } from '../config';
|
||||
})
|
||||
|
||||
export class SidebarComponent implements OnInit {
|
||||
layout: string = config.dashboard.currentLayout;
|
||||
@Input() layout: string;
|
||||
enabledLayouts: Set<string> = config.dashboard.enabledLayouts;
|
||||
constructor() {}
|
||||
ngOnInit() {
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user