mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 12:12:55 +00:00 
			
		
		
		
	Fix tslint errors
This commit is contained in:
		@@ -131,7 +131,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
 | 
			
		||||
    // Sometimes it is needed to reload the iframe without resending the previous form data
 | 
			
		||||
    setTimeout(() => {
 | 
			
		||||
      this.webiframe.nativeElement.contentWindow.location = this.webiframe.nativeElement.contentWindow.location.href;
 | 
			
		||||
    })
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  selectTerminalMenuItem(item: string) {
 | 
			
		||||
@@ -165,12 +165,13 @@ export class DashboardComponent implements OnInit, OnDestroy {
 | 
			
		||||
 | 
			
		||||
  changeIframeURL() {
 | 
			
		||||
    const userGivenValue = this.urlbar.nativeElement.value.trim();
 | 
			
		||||
    if(
 | 
			
		||||
        userGivenValue == '/' ||
 | 
			
		||||
    if (
 | 
			
		||||
        userGivenValue === '/' ||
 | 
			
		||||
        userGivenValue.startsWith('dashboard') ||
 | 
			
		||||
        userGivenValue.startsWith('/dashboard')
 | 
			
		||||
    )
 | 
			
		||||
    ) {
 | 
			
		||||
      return;
 | 
			
		||||
    }
 | 
			
		||||
    this.webiframe.nativeElement.contentWindow.frames.location.href = this.urlbar.nativeElement.value;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -112,7 +112,7 @@ export class IdeComponent implements OnInit {
 | 
			
		||||
 | 
			
		||||
  readHandler(message: IDEMessage) {
 | 
			
		||||
    if (this.codeState === CodeState.SAVED) {
 | 
			
		||||
      if (this.filename != message.filename) {
 | 
			
		||||
      if (this.filename !== message.filename) {
 | 
			
		||||
        this.filename = message.filename;
 | 
			
		||||
      }
 | 
			
		||||
      this.code = (message.content != null) ? message.content : this.code;
 | 
			
		||||
 
 | 
			
		||||
@@ -16,7 +16,7 @@ export class MessagesComponent implements OnInit {
 | 
			
		||||
  newMessage: Subject<MessageData> = new Subject<MessageData>();
 | 
			
		||||
  messageInQueue = true;
 | 
			
		||||
 | 
			
		||||
  originator: string = 'avataobot';
 | 
			
		||||
  originator = 'avataobot';
 | 
			
		||||
  messages: MessageData[] = [];
 | 
			
		||||
  messageQueueAttender: MessageQueueAttender;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -45,7 +45,7 @@ export class ProcessManagerService {
 | 
			
		||||
 | 
			
		||||
  sendCommand(command: string, process_name: string) {
 | 
			
		||||
    this.webSocketService.sendJSON({
 | 
			
		||||
      'key': 'process.'+command,
 | 
			
		||||
      'key': 'process.' + command,
 | 
			
		||||
      'name': process_name
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user