Skip to content

Commit

Permalink
Merge pull request #6417 from WatCodeDatCode/fix/issue-6404
Browse files Browse the repository at this point in the history
#6404 fix: add messages to FileUpload templates
  • Loading branch information
tugcekucukoglu authored Sep 25, 2024
2 parents 6048b6a + b31055f commit fdf9c92
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions apps/showcase/doc/fileupload/TemplateDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,12 @@
</ProgressBar>
</div>
</template>
<template #content="{ files, uploadedFiles, removeUploadedFileCallback, removeFileCallback }">
<template #content="{ files, uploadedFiles, removeUploadedFileCallback, removeFileCallback, messages }">
<div class="flex flex-col gap-8 pt-4">
<Message v-for="message of messages" :key="message" :class="{ 'mb-8': !files.length && !uploadedFiles.length }" severity="error">
{{ message }}
</Message>

<div v-if="files.length > 0">
<h5>Pending</h5>
<div class="flex flex-wrap gap-4">
Expand Down Expand Up @@ -82,8 +86,12 @@ export default {
</ProgressBar>
</div>
</template>
<template #content="{ files, uploadedFiles, removeUploadedFileCallback, removeFileCallback }">
<template #content="{ files, uploadedFiles, removeUploadedFileCallback, removeFileCallback, messages }">
<div class="flex flex-col gap-8 pt-4">
<Message v-for="message of messages" :key="message" :class="{ 'mb-8': !files.length && !uploadedFiles.length}" severity="error">
{{ message }}
</Message>
<div v-if="files.length > 0">
<h5>Pending</h5>
<div class="flex flex-wrap gap-4">
Expand Down Expand Up @@ -140,8 +148,12 @@ export default {
</ProgressBar>
</div>
</template>
<template #content="{ files, uploadedFiles, removeUploadedFileCallback, removeFileCallback }">
<template #content="{ files, uploadedFiles, removeUploadedFileCallback, removeFileCallback, messages }">
<div class="flex flex-col gap-8 pt-4">
<Message v-for="message of messages" :key="message" :class="{ 'mb-8': !files.length && !uploadedFiles.length}" severity="error">
{{ message }}
</Message>
<div v-if="files.length > 0">
<h5>Pending</h5>
<div class="flex flex-wrap gap-4">
Expand Down

0 comments on commit fdf9c92

Please sign in to comment.