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: TT-437 validated maximum time entry hours
  • Loading branch information
ararcos committed Dec 3, 2021
commit b8693cfce4ee6b57bfd8a0eeed2bb5e54dd88605
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
class="form-control"
aria-label="Small"
aria-describedby="inputGroup-sizing-sm"
[disabled]="true"
[class.is-invalid]="end_date.invalid && end_date.touched"
required
[max]="getCurrentDate()"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -383,6 +383,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
end_date: formatDate(get(this.entryToEdit, 'start_date', ''), DATE_FORMAT, 'en'),
end_hour: formatDate(new Date(), 'HH:mm', 'en'),
});
this.end_date.setValue(this.start_date.value);
}
this.shouldRestartEntry = !this.entryToEdit?.running && this.goingToWorkOnThis;
}
Expand Down