fix: render logic for LoadingAlert and incorrect error title

This commit is contained in:
2025-11-06 10:02:07 +01:00
parent 1b7b16a233
commit 880c55888f
3 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
<template>
<div>
<v-alert density="compact" :text="error" :title="error || 'Chyba'" type="error" class="mb-2 mt-2"></v-alert>
<v-alert density="compact" :text="error" :title="title || 'Chyba'" type="error" class="mb-2 mt-2"></v-alert>
</div>
</template>

View File

@@ -41,7 +41,7 @@ async function handleInternshipRegistration(internship: NewInternship) {
<br />
<!-- Čakajúca hláška -->
<LoadingAlert />
<LoadingAlert v-if="loading" />
<!-- Chybová hláška -->
<ErrorAlert v-if="error" :error="error" />

View File

@@ -52,7 +52,7 @@ async function handleUpdateOfBasicInfo(internship: NewInternship) {
<div style="height: 40px;"></div>
<!-- Čakajúca hláška -->
<LoadingAlert />
<LoadingAlert v-if="loading" />
<!-- Chybová hláška -->
<ErrorAlert v-if="action_error" :error="action_error" />
@@ -84,7 +84,7 @@ async function handleUpdateOfBasicInfo(internship: NewInternship) {
<div>
<h2>Nahratie dokumentov</h2>
<ErrorAlert v-if="data?.status.status !== InternshipStatus.CONFIRMED"
<ErrorAlert v-if="data?.status.status !== InternshipStatus.CONFIRMED" 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" />