mirror of
				https://github.com/avatao-content/frontend-tutorial-framework
				synced 2025-11-04 06:12:54 +00:00 
			
		
		
		
	Add option to turn off iframe reloading on 'deploy' click
This commit is contained in:
		@@ -25,7 +25,8 @@ export const config = {
 | 
			
		||||
    defaultCode: 'Loading your file...',
 | 
			
		||||
    defaultLanguage: 'text',
 | 
			
		||||
    deployProcessName: 'webservice',
 | 
			
		||||
    showDeployButton: true
 | 
			
		||||
    showDeployButton: true,
 | 
			
		||||
    reloadIframeOnDeployButtonClick: true
 | 
			
		||||
  },
 | 
			
		||||
  terminal: {
 | 
			
		||||
    route: 'shell'
 | 
			
		||||
 
 | 
			
		||||
@@ -44,7 +44,7 @@ export class DashboardComponent implements OnInit, OnDestroy {
 | 
			
		||||
    this.deploymentNotificationSubscription = this.deploymentNotificationService.deploying.subscribe(
 | 
			
		||||
      (deploying) => {
 | 
			
		||||
        this.deploying = deploying;
 | 
			
		||||
        if (!deploying) {
 | 
			
		||||
        if (!deploying && config.ide.reloadIframeOnDeployButtonClick) {
 | 
			
		||||
          this.reloadIframe();
 | 
			
		||||
        }
 | 
			
		||||
      });
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user