Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: #273 no default project selected on time-clock
  • Loading branch information
enriquezrene committed May 21, 2020
commit df30962329c83529b4dab42e3ad94b232afe7f97
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<span class="input-group-text span-width" id="inputGroup-sizing-sm">Project</span>
</div>
<select (change)="clockIn()" formControlName="project_id" class="form-control">
<option value="-1"></option>
<option *ngFor="let project of listProjects" value="{{project.id}}">{{project.customer_name}} - {{project.name}}</option>
</select>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ export class ProjectListHoverComponent implements OnInit {
this.projectsForm.setValue({
project_id: activeEntry.project_id,
});
} else {
this.projectsForm.setValue({
project_id: '-1',
});
}
});
}
Expand Down