diff --git a/ui/src/components/loa/loaForm.vue b/ui/src/components/loa/loaForm.vue
index 50bc08e..73a96bd 100644
--- a/ui/src/components/loa/loaForm.vue
+++ b/ui/src/components/loa/loaForm.vue
@@ -134,6 +134,15 @@ const maxEndDate = computed(() => {
}
})
+const minStartDate = computed(() => {
+ if (values.type && values.end_date) {
+ let endDateObj = new Date(values.end_date.getTime() - values.type.max_length_days * 24 * 60 * 60 * 1000);
+ return new CalendarDate(endDateObj.getFullYear(), endDateObj.getMonth() + 1, endDateObj.getDate())
+ } else {
+ return null;
+ }
+})
+
const memberFilter = ref('');
const filteredMembers = computed(() => {
@@ -249,7 +258,7 @@ const filteredMembers = computed(() => {