Skip to content

Commit

Permalink
Load settings during Project creation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Timothy Jones committed Nov 16, 2020
1 parent f03cbb0 commit 136a06b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/project/project.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ export class ProjectService {
private loadingController: LoadingController
) {
this.project = new Project();
this.apiService.getSettings().subscribe((data) => {
this.project.settings = data;
});
// this.project.name = "vava";
// this.apiService.getProjectResults("vava").subscribe((result) => {
// this.project.results = result.sort((a, b) => (a.name > b.name ? 1 : -1));
Expand Down

0 comments on commit 136a06b

Please sign in to comment.