Velocity mode support 22/82222/1
authorEzhilarasi <ezhrajam@in.ibm.com>
Thu, 14 Mar 2019 07:42:55 +0000 (13:12 +0530)
committerEzhilarasi <ezhrajam@in.ibm.com>
Thu, 14 Mar 2019 07:43:05 +0000 (13:13 +0530)
Change-Id: I6814b57d117fed267bbb39988ca2e6f4ea7f7c49
Issue-ID: CCSDK-707
Signed-off-by: Ezhilarasi <ezhrajam@in.ibm.com>
cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts

index 37ac522..7203dc8 100644 (file)
@@ -217,15 +217,12 @@ export class EditorComponent implements OnInit {
   setEditorMode() {
     switch (this.fileExtension) {
       case "xml":
-        // console.log("xml mode set");
         this.mode = 'xml';
         break;
       case "py":
-        console.log("python mode set");
         this.mode = 'python';
         break;
       case "kts":
-        // console.log("kotlin mode set");
         this.mode = 'kotlin';
         break;
       case "txt":
@@ -234,9 +231,11 @@ export class EditorComponent implements OnInit {
       case "meta":
         this.mode = 'text';
         break;
+      case "vtl":
+        this.mode = 'velocity';
+        break;
       default:
         this.mode = 'json';
-        console.log("json mode set");
     }
   }
 }