Skip to content

Commit

Permalink
Added button for all templates
Browse files Browse the repository at this point in the history
  • Loading branch information
nunofreitas96 committed Jun 2, 2020
1 parent dcd2764 commit a6220dd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 11 additions & 0 deletions frontend/src/app/components/view-template.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,15 @@ export class ViewTemplateComponent implements OnInit {


}

editTemplate() {
this.route.navigate(['/edit-template/', this.uid],
{
queryParams:
{
template: JSON.stringify(this.template)
}
}
);
}
}
2 changes: 0 additions & 2 deletions frontend/src/app/edit-template/edit-template.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ export class EditTemplateComponent implements OnInit {
addProp() {
this.load = false;
this.chosenprops.push(this.comboBoxReference.inputItem);
console.log( "this.form.data");
console.log( this.form.data);
this.form.data[this.uid][this.comboBoxReference.inputItem] = [];
this.form.data[this.uid][this.comboBoxReference.inputItem][0] = {name: '1', uid: '1' };
const schemaEntity = this.schemaname.replace('Schema', '');
Expand Down

0 comments on commit a6220dd

Please sign in to comment.