fix: update status check for document upload to use new statuses

This commit is contained in:
2025-11-29 14:34:24 +01:00
parent fcb6cc13fa
commit 5b84b67a65
2 changed files with 2 additions and 2 deletions

View File

@@ -95,7 +95,7 @@ async function handleUpdateOfBasicInfo(internship: NewInternship) {
<div>
<h2>Nahratie dokumentov</h2>
<ErrorAlert v-if="data?.status.status !== InternshipStatus.CONFIRMED" title="Blokované"
<ErrorAlert v-if="data?.status.status !== InternshipStatus.CONFIRMED_BY_COMPANY" title="Blokované"
error='Vaša prax nie je v stave "Schválená" a teda nemôžete nahrať dokumenty.' />
<InternshipDocumentEditor v-else :internship="data!" @successful-submit="refresh" />

View File

@@ -88,7 +88,7 @@ async function handleUpdateOfBasicInfo(internship: NewInternship) {
<div>
<h2>Nahratie dokumentov</h2>
<ErrorAlert v-if="data?.status.status !== InternshipStatus.CONFIRMED" title="Blokované"
<ErrorAlert v-if="data?.status.status !== InternshipStatus.CONFIRMED_BY_COMPANY" title="Blokované"
error='Vaša prax nie je v stave "Schválená" a teda nemôžete nahrať dokumenty.' />
<InternshipDocumentEditor v-else :internship="data!" @successful-submit="refresh" />