Skip to content

Commit

Permalink
Issue #85: Set correct skillStatus, when skill complete / uncomplete …
Browse files Browse the repository at this point in the history
…is clicked
  • Loading branch information
Amar-Bolkan committed Jun 13, 2022
1 parent fc0d513 commit f2dcc34
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -224,13 +224,15 @@ export class TeamsSkillsComponent implements OnInit, OnChanges {
setComplete(skill: IAchievableSkill): void {
if (!skill.irrelevant) {
skill.achievedAt = moment();
skill.skillStatus = SkillStatus.ACHIEVED;
this.updateSkill(skill);
}
}

setIncomplete(skill: IAchievableSkill): void {
if (!skill.irrelevant) {
skill.achievedAt = undefined;
skill.skillStatus = SkillStatus.OPEN;
this.updateSkill(skill);
}
}
Expand Down

0 comments on commit f2dcc34

Please sign in to comment.