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

.

parent 32edaadd
......@@ -3,13 +3,13 @@ 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',
styleUrls: ['./boilerplate-details.component.scss']
})
export class BoilerplateDetailsComponent implements OnInit {
currentboilerplate: Boilerplate = {
has_prefix: false,
......@@ -17,7 +17,6 @@ export class BoilerplateDetailsComponent implements OnInit {
has_suffix: false
};
message = '';
constructor(
private boilerplateService: BoilerplateService,
......
......@@ -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