You've already forked isop-mirror
fix: render logic for LoadingAlert and incorrect error title
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -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" />
|
||||
|
||||
@@ -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" />
|
||||
|
||||
Reference in New Issue
Block a user