From e23e6bf1b03fd7573c88dc77885c0ab9bcf1eb25 Mon Sep 17 00:00:00 2001 From: Ezhilarasi Date: Mon, 9 Sep 2019 17:57:56 +0530 Subject: Added mode for kt and create method Change-Id: I4c1c20077a2da5269724fff12fc456a86b5168f4 Issue-ID: CCSDK-1275 Signed-off-by: Ezhilarasi --- .../blueprint/modify-template/editor/editor.component.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'cds-ui/client/src/app/feature-modules') diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts index 08f1ca130..f45ee9e55 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts @@ -244,9 +244,8 @@ export class EditorComponent implements OnInit { }) this.fileExtension = this.selectedFile.substr(this.selectedFile.lastIndexOf('.') + 1); this.setEditorMode(); - if(this.options == '3') - { - this.editorReadOnly= true; + if (this.options == '3') { + this.editorReadOnly = true; } } @@ -357,6 +356,9 @@ export class EditorComponent implements OnInit { case "kts": this.mode = 'kotlin'; break; + case "kt": + this.mode = 'kotlin'; + break; case "txt": this.mode = 'text'; break; -- cgit 1.2.3-korg