mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 05:52:56 +00:00 
			
		
		
		
	Implement changing messaging visibility from API
This commit is contained in:
		@@ -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;
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user