Skip to content

Commit

Permalink
fix(bug): fixed bug where you cant open projects
Browse files Browse the repository at this point in the history
  • Loading branch information
Sören Giller authored and Sören Giller committed Aug 29, 2018
2 parents 8b2cab2 + 6a34e38 commit 8c4cfac
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions src/app/projectmanagement/overview.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,15 +152,17 @@ export class OverviewComponent {
newProject.DateEnd = moment(expirationDate).date() + "." + (moment(expirationDate).month() + 1) + "." + moment(expirationDate).year();
}
let newProjectApplications = [];
for (let application of group['applications']) {
let dateApplicationCreated = moment(application['createdAt'], "YYYY-MM-DD HH:mm:ss.SSS")
let membername = application['user']['firstName'] + ' ' + application['user']['lastName']
let newMemberApplication = new ProjectMemberApplication(
application['id'], membername, dateApplicationCreated.date() + "." + (dateApplicationCreated.month() + 1) + "." + dateApplicationCreated.year(),
)
newProjectApplications.push(newMemberApplication)
if (group['applications']) {
for (let application of group['applications']) {
let dateApplicationCreated = moment(application['createdAt'], "YYYY-MM-DD HH:mm:ss.SSS")
let membername = application['user']['firstName'] + ' ' + application['user']['lastName']
let newMemberApplication = new ProjectMemberApplication(
application['id'], membername, dateApplicationCreated.date() + "." + (dateApplicationCreated.month() + 1) + "." + dateApplicationCreated.year(),
)
newProjectApplications.push(newMemberApplication)
}
newProject.ProjectMemberApplications = newProjectApplications;
}
newProject.ProjectMemberApplications = newProjectApplications;
this.projects.push(newProject);
}
this.isLoaded = true;
Expand Down Expand Up @@ -284,7 +286,7 @@ export class OverviewComponent {
this.application_action = 'rejected';
this.application_member_name = membername;
this.loaded = true;
this.application_action_done=true;
this.application_action_done = true;


})
Expand Down

0 comments on commit 8c4cfac

Please sign in to comment.