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> <template>
<div> <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> </div>
</template> </template>

View File

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

View File

@@ -52,7 +52,7 @@ async function handleUpdateOfBasicInfo(internship: NewInternship) {
<div style="height: 40px;"></div> <div style="height: 40px;"></div>
<!-- Čakajúca hláška --> <!-- Čakajúca hláška -->
<LoadingAlert /> <LoadingAlert v-if="loading" />
<!-- Chybová hláška --> <!-- Chybová hláška -->
<ErrorAlert v-if="action_error" :error="action_error" /> <ErrorAlert v-if="action_error" :error="action_error" />
@@ -84,7 +84,7 @@ async function handleUpdateOfBasicInfo(internship: NewInternship) {
<div> <div>
<h2>Nahratie dokumentov</h2> <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.' /> error='Vaša prax nie je v stave "Schválená" a teda nemôžete nahrať dokumenty.' />
<InternshipDocumentEditor v-else :internship="data!" @successful-submit="refresh" /> <InternshipDocumentEditor v-else :internship="data!" @successful-submit="refresh" />