mirror of
https://github.com/avatao-content/frontend-tutorial-framework
synced 2024-12-05 02:41:32 +00:00
Add option to turn off iframe reloading on 'deploy' click
This commit is contained in:
parent
b2862b755b
commit
7fea6e2029
@ -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();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user