Skip to content

Commit 39ca2d1

Browse files
authored
fix: TT-437 validated maximum time entry hours (#772)
1 parent e5431bc commit 39ca2d1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/app/modules/shared/components/details-fields/details-fields.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@
117117
class="form-control"
118118
aria-label="Small"
119119
aria-describedby="inputGroup-sizing-sm"
120+
[disabled]="true"
120121
[class.is-invalid]="end_date.invalid && end_date.touched"
121122
required
122123
[max]="getCurrentDate()"

src/app/modules/shared/components/details-fields/details-fields.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,7 @@ export class DetailsFieldsComponent implements OnChanges, OnInit {
383383
end_date: formatDate(get(this.entryToEdit, 'start_date', ''), DATE_FORMAT, 'en'),
384384
end_hour: formatDate(new Date(), 'HH:mm', 'en'),
385385
});
386+
this.end_date.setValue(this.start_date.value);
386387
}
387388
this.shouldRestartEntry = !this.entryToEdit?.running && this.goingToWorkOnThis;
388389
}

0 commit comments

Comments
 (0)