Commit 5b62f738 authored by Thodoris Nestoridis's avatar Thodoris Nestoridis

.

parent 32edaadd
......@@ -3,6 +3,7 @@ import { ActivatedRoute, Router } from '@angular/router';
import { Boilerplate } from 'src/app/models/boilerplate.model';
import { BoilerplateService } from 'src/app/services/boilerplate.service';
@Component({
selector: 'app-boilerplate-details',
templateUrl: './boilerplate-details.component.html',
......@@ -10,7 +11,6 @@ import { BoilerplateService } from 'src/app/services/boilerplate.service';
})
export class BoilerplateDetailsComponent implements OnInit {
currentboilerplate: Boilerplate = {
has_prefix: false,
has_main: false,
......@@ -18,7 +18,6 @@ export class BoilerplateDetailsComponent implements OnInit {
};
message = '';
constructor(
private boilerplateService: BoilerplateService,
private route: ActivatedRoute,
......
......@@ -3,6 +3,7 @@ import { Boilerplate } from 'src/app/models/boilerplate.model';
import { BoilerplateService } from 'src/app/services/boilerplate.service';
@Component({
selector: 'app-boilerplate-list',
templateUrl: './boilerplate-list.component.html',
......
<app-prefix-list></app-prefix-list>
<form class="form-group form-inline">
<mat-form-field class="example-full-width">
<mat-label>Prefix</mat-label>
......@@ -32,6 +33,13 @@
</mat-autocomplete>
</mat-form-field>
</form>
<button
type="submit"
class="badge badge-success mb-2"
(click)="updatePrefix()"
>
Update
</button>
<!--
......
......@@ -25,14 +25,17 @@ export class PrefixListComponent implements OnInit {
//console.log("The boilerplate", this.route.snapshot.params.id);
}
getAllPrefix(id: string): void {
this.prefixService.getAll(id)
.subscribe(
data => {
PrefixDetailsComponent.id.length =0;
this.prefixs = data;
//console.log(data);
for (var val of data) {
this.prefixDetails.getPrefix(id, val.id);
//this.prefixDetails.getPrefix(id, val.id);
PrefixDetailsComponent.id.push(val.id);
}
},
error => {
......
export class Prefix {
id?:any;
prefix_group?:any;
prefix_boilerplate?:any;
prefix_group?:any;
prefix?: string;
system_fun_item?: string;
state_or_verb?: string;
......
Markdown is supported
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