diff options
author | Dan Timoney <dtimoney@att.com> | 2019-02-22 20:45:26 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2019-02-22 20:45:26 +0000 |
commit | afa8baf78420f3d0a1532f94ec59bf13067705a8 (patch) | |
tree | b778722e26865b5539037db0918790dbfb8a4afc /cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html | |
parent | 4465c32a9e09c7777528b259bcb18bb6289f6d1f (diff) | |
parent | 43b7f54d9a69aec3c460044f5c969ba61ebb590e (diff) |
Merge "Added Ace-editor component"
Diffstat (limited to 'cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html')
-rw-r--r-- | cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html index 9dbaf6728..4c1a7dc9e 100644 --- a/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html +++ b/cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.html @@ -19,27 +19,29 @@ limitations under the License. ============LICENSE_END============================================ --> <div class="container"> - <div class="fileViewContainer"> - <mat-tree [dataSource]="dataSource" [treeControl]="treeControl"> + <div class="fileViewContainer"> + <mat-tree [dataSource]="dataSource" [treeControl]="treeControl"> <!-- This is the tree node template for leaf nodes --> <mat-tree-node *matTreeNodeDef="let node" matTreeNodePadding> - <!-- use a disabled button to provide padding for tree leaf --> - <button mat-icon-button disabled></button> - <span (click)="fileClicked(node.name)">{{node.name}}</span> + <!-- use a disabled button to provide padding for tree leaf --> + <button mat-icon-button disabled></button> + <span (click)="fileClicked(node.name)">{{node.name}}</span> </mat-tree-node> <!-- This is the tree node template for expandable nodes --> <mat-tree-node *matTreeNodeDef="let node;when: hasChild" matTreeNodePadding> - <button mat-icon-button matTreeNodeToggle - [attr.aria-label]="'toggle ' + node.name"> + <button mat-icon-button matTreeNodeToggle [attr.aria-label]="'toggle ' + node.name"> <mat-icon class="mat-icon-rtl-mirror"> {{treeControl.isExpanded(node) ? 'expand_more' : 'chevron_right'}} </mat-icon> </button> - <span (click)="fileClicked(node.name)">{{node.name}}</span> + <span (click)="fileClicked(node.name)">{{node.name}}</span> </mat-tree-node> - </mat-tree> - </div> - <div class="editorConatiner"> - <p>Here comes the actual editor</p> - </div> + </mat-tree> + </div> + <div class="editorConatiner"> + <ace-editor [(text)]="text" mode="json" #editor class="aceEditor"></ace-editor> + </div> +</div> +<div style="position:relative"> + <button mat-button class="savebtn" (click)="updateBlueprint()">Save</button> </div>
\ No newline at end of file |