summaryrefslogtreecommitdiffstats
path: root/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts
diff options
context:
space:
mode:
authorDan Timoney <dtimoney@att.com>2019-09-12 13:56:46 +0000
committerGerrit Code Review <gerrit@onap.org>2019-09-12 13:56:46 +0000
commit6b8fbc694e204117efe3ae44c99ae08d64c11f9a (patch)
treed838d52c0325274015317ff8fe6b87168221cf72 /cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts
parent8b24f42bcba5220f72b6977441867f774aca57df (diff)
parente23e6bf1b03fd7573c88dc77885c0ab9bcf1eb25 (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.ts8
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;