Skip to content

Commit c6cc9bf

Browse files
committed
fix: #359 avoid having descriptions with longer lengths than allowed in the backend
1 parent bafefe6 commit c6cc9bf

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102

103103
<div class="form-group text-left">
104104
<label for="NotesTextarea">Description</label>
105-
<textarea formControlName="description" class="form-control" id="NotesTextarea" rows="3"></textarea>
105+
<textarea maxlength="1500" formControlName="description" class="form-control" id="NotesTextarea" rows="3"></textarea>
106106
</div>
107107
<div class="modal-footer">
108108
<button type="submit" class="btn btn-primary" [disabled]="!entryForm.valid">Save</button>

src/app/modules/time-clock/components/entry-fields/entry-fields.component.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<span class="input-group-text span-width">Description</span>
2727
</div>
2828
<textarea
29+
maxlength="1500"
2930
(blur)="onSubmit()"
3031
formControlName="description"
3132
class="form-control"

0 commit comments

Comments
 (0)