Add option to turn off iframe reloading on 'deploy' click

This commit is contained in:
Kristóf Tóth 2018-05-25 15:30:59 +02:00
parent b2862b755b
commit 7fea6e2029
2 changed files with 3 additions and 2 deletions

View File

@ -25,7 +25,8 @@ export const config = {
defaultCode: 'Loading your file...',
defaultLanguage: 'text',
deployProcessName: 'webservice',
showDeployButton: true
showDeployButton: true,
reloadIframeOnDeployButtonClick: true
},
terminal: {
route: 'shell'

View File

@ -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();
}
});