diff options
author | 2019-09-12 13:56:46 +0000 | |
---|---|---|
committer | 2019-09-12 13:56:46 +0000 | |
commit | 6b8fbc694e204117efe3ae44c99ae08d64c11f9a (patch) | |
tree | d838d52c0325274015317ff8fe6b87168221cf72 /cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts | |
parent | 8b24f42bcba5220f72b6977441867f774aca57df (diff) | |
parent | e23e6bf1b03fd7573c88dc77885c0ab9bcf1eb25 (diff) |
Merge "Added mode for kt and create method"
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts')
-rw-r--r-- | cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts | 8 |
1 files changed, 5 insertions, 3 deletions
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; |