Fixed webapp build error in prod mode
[src/xds/xds-agent.git] / webapp / src / app / pages / build / build.component.ts
index f937fc3..42975c1 100644 (file)
@@ -1,6 +1,6 @@
 /**
 * @license
-* Copyright (C) 2017 "IoT.bzh"
+* Copyright (C) 2017-2018 "IoT.bzh"
 * Author Sebastien Douheret <sebastien@iot.bzh>
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
@@ -105,9 +105,10 @@ export class BuildComponent implements OnInit, AfterViewChecked {
     if (!this.isSetupValid()) {
       return this.alertSvr.warning('Please select first a valid project.', true);
     }
-
-    const activeModal = this.modalService.open(BuildSettingsModalComponent, { size: 'lg', container: 'nb-layout' });
-    activeModal.componentInstance.modalHeader = 'Large Modal';
+    const modal = this.modalService.open(
+      BuildSettingsModalComponent,
+      { size: 'lg', container: 'nb-layout' },
+    );
   }
 
   execCmd(cmdName: string) {
@@ -134,7 +135,7 @@ export class BuildComponent implements OnInit, AfterViewChecked {
         cmd = this.curPrj.uiSettings.cmdPopulate;
         break;
       case 'exec':
-        if (this.curPrj.uiSettings.cmdArgs instanceof Array)  {
+        if (this.curPrj.uiSettings.cmdArgs instanceof Array) {
           cmd = this.curPrj.uiSettings.cmdArgs.join(' ');
         } else {
           cmd = this.curPrj.uiSettings.cmdArgs;