diff --git a/frontend/app/components/InternshipListView.vue b/frontend/app/components/InternshipListView.vue index 03bc63c..0360206 100644 --- a/frontend/app/components/InternshipListView.vue +++ b/frontend/app/components/InternshipListView.vue @@ -25,6 +25,11 @@ const totalItems = ref(0); const deleteConfirmDialog = ref(false); const internshipToDelete = ref(null); +const rules = { + minFilterLen: (v: string) => (v.length >= 3) || 'Min. 3 znaky', + minYear: (v: number | null) => (v === null ? true : v >= 1000) || 'Min. 4-ciferné číslo' +}; + const allHeaders = [ { title: "Študent", key: "student.name", sortable: false }, { title: "Firma", key: "company.name", sortable: false }, @@ -99,16 +104,20 @@ async function confirmDeletion(confirm: boolean) { - + - + - + - +