aboutsummaryrefslogtreecommitdiffstats
path: root/cds-ui/client
diff options
context:
space:
mode:
Diffstat (limited to 'cds-ui/client')
-rw-r--r--cds-ui/client/src/app/common/shared/components/home/home.component.html34
-rw-r--r--cds-ui/client/src/app/feature-modules/blueprint/modify-template/editor/editor.component.ts7
2 files changed, 18 insertions, 23 deletions
diff --git a/cds-ui/client/src/app/common/shared/components/home/home.component.html b/cds-ui/client/src/app/common/shared/components/home/home.component.html
index dc0181cff..f8cfc888e 100644
--- a/cds-ui/client/src/app/common/shared/components/home/home.component.html
+++ b/cds-ui/client/src/app/common/shared/components/home/home.component.html
@@ -17,9 +17,6 @@ See the License for the specific language governing permissions and
limitations under the License.
============LICENSE_END============================================
-->
-
-
-<!-- <app-header></app-header> -->
<!-- <mat-toolbar color="warn">
<mat-toolbar-row>
<button type="button" aria-label="Toggle sidenav" mat-icon-button (click)="drawer.toggle()" color="primary">
@@ -31,22 +28,21 @@ limitations under the License.
<mat-toolbar color="primary">
<mat-toolbar-row>
<!-- <button type="button" aria-label="Toggle sidenav" mat-icon-button (click)="drawer.toggle()" color="primary"> -->
- <a class="menuBar" (click)="drawer.toggle()">&#9776;</a>
- <!-- </button> -->
- <span class="title">Controller Blueprint Design Studio</span>
- </mat-toolbar-row>
+ <a class="menuBar" (click)="drawer.toggle()">&#9776;</a>
+ <!-- </button> -->
+ <span class="title">Controller Blueprint Design Studio</span>
+ </mat-toolbar-row>
</mat-toolbar>
<mat-sidenav-container class="example-container">
- <mat-sidenav #drawer mode="side" [(opened)]="opened" (opened)="events.push('open!')"
- (closed)="events.push('close!')">
- <mat-toolbar color=""primary>Menu</mat-toolbar>
- <mat-nav-list>
- <a mat-list-item [routerLink]="['/blueprint']">Controlled Blueprint</a>
- <a mat-list-item [routerLink]="['/resource-definition']">Resource Definition</a>
- </mat-nav-list>
- </mat-sidenav>
+ <mat-sidenav #drawer mode="side" [(opened)]="opened" (opened)="events.push('open!')" (closed)="events.push('close!')">
+ <mat-toolbar color="" primary>Menu</mat-toolbar>
+ <mat-nav-list>
+ <a mat-list-item [routerLink]="['/blueprint']">Controller Blueprint</a>
+ <a mat-list-item [routerLink]="['/resource-definition']">Resource Definition</a>
+ </mat-nav-list>
+ </mat-sidenav>
- <mat-sidenav-content (click)="drawer.close()">
- <router-outlet></router-outlet>
- </mat-sidenav-content>
-</mat-sidenav-container> \ No newline at end of file
+ <mat-sidenav-content (click)="drawer.close()">
+ <router-outlet></router-outlet>
+ </mat-sidenav-content>
+</mat-sidenav-container> \ No newline at end of file
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 37ac522af..7203dc8b3 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
@@ -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");
}
}
}