Commit d9b6fc30 authored by Alexander Philipp Nowosad's avatar Alexander Philipp Nowosad
Browse files

Add canvas elements component

parent 55fa9ccb
......@@ -23,6 +23,7 @@ import { RefineCanvasComponent } from './api/refine-canvas/refine-canvas.compone
import { ViewCanvasComponent } from './api/view-canvas/view-canvas.component';
import { EditModelComponent } from './api/edit-model/edit-model.component';
import { AuthGuard } from '../database/auth.guard';
import { CanvasElementsComponent } from './elements/canvas-elements/canvas-elements.component';
const routes: Routes = [
{
......@@ -90,6 +91,11 @@ const routes: Routes = [
},
],
},
{
path: 'canvasElements',
component: CanvasElementsComponent,
canActivate: [AuthGuard],
},
];
@NgModule({
......
......@@ -59,6 +59,7 @@ import { CanvasDefinitionFormComponent } from './canvas-definition/canvas-defini
import { CanvasDefinitionRowFormComponent } from './canvas-definition/canvas-definition-row-form/canvas-definition-row-form.component';
import { ApiNavigationComponent } from './api/api-navigation/api-navigation.component';
import { CanvasDefinitionRelationshipsFormComponent } from './canvas-definition/canvas-definition-relationships-form/canvas-definition-relationships-form.component';
import { CanvasElementsComponent } from './elements/canvas-elements/canvas-elements.component';
@NgModule({
providers: [
......@@ -100,6 +101,9 @@ import { CanvasDefinitionRelationshipsFormComponent } from './canvas-definition/
CompanyModelSelectExpertKnowledgeComponent,
CompanyModelsComponent,
// elements
CanvasElementsComponent,
// expert-model
ExpertModelComponent,
ExpertModelEditComponent,
......
<div class="nav-scroller bg-white shadow-sm">
<nav class="nav nav-underline">
<a class="nav-link active" [routerLink]="[]">Canvas Elements</a>
</nav>
</div>
<main role="main" class="container">
<div class="my-3 alert alert-info">
All canvas elements, except for domains, are directly defined while creating
canvas building blocks.
</div>
<app-list-wrapper listTitle="Canvas Elements">
<div results class="list-group">
<a
class="list-group-item list-group-item-action d-flex"
[routerLink]="['/', 'domains']"
>
<div>Domains</div>
<div class="ml-auto">
<div class="btn btn-dark btn-xs">View</div>
</div>
</a>
</div>
</app-list-wrapper>
</main>
import { Component } from '@angular/core';
@Component({
selector: 'app-canvas-elements',
templateUrl: './canvas-elements.component.html',
styleUrls: ['./canvas-elements.component.css'],
})
export class CanvasElementsComponent {}
......@@ -77,7 +77,7 @@ export class NavbarComponent implements OnInit, OnDestroy {
},
{
name: 'Canvas Elements',
route: ['domains'],
route: ['canvasElements'],
roles: [InternalRoles.EXPERT],
},
],
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment