|
22 | 22 | additionalInformation |
23 | 23 | }}</span> |
24 | 24 | </div> |
25 | | - <span |
26 | | - v-if="!validFileSizes && maxFileSizeWarning" |
27 | | - class="m-error-message drop-zone-error-message" |
28 | | - > |
29 | | - <MucIcon |
30 | | - icon="warning--filled" |
31 | | - class="icon" |
32 | | - /> |
33 | | - <span> |
34 | | - {{ maxFileSizeWarning }} |
35 | | - </span> |
36 | | - </span> |
37 | | - <span |
38 | | - v-if="!validTotalFileSizes && maxTotalFileSizeWarning" |
39 | | - class="m-error-message drop-zone-error-message" |
40 | | - > |
41 | | - <MucIcon icon="warning--filled" /> |
42 | | - <span> |
43 | | - {{ maxTotalFileSizeWarning }} |
44 | | - </span> |
45 | | - </span> |
46 | | - <span |
47 | | - v-if="!validFilesAmount" |
48 | | - class="m-error-message drop-zone-error-message" |
49 | | - > |
50 | | - <MucIcon icon="warning--filled" /> |
51 | | - <span> |
52 | | - {{ invalidAmountWarning }} |
53 | | - </span> |
54 | | - </span> |
| 25 | + |
| 26 | + <form-error-message v-if="!validFileSizes && maxFileSizeWarning"> |
| 27 | + {{ maxFileSizeWarning }} |
| 28 | + </form-error-message> |
| 29 | + |
| 30 | + <form-error-message v-if="!validTotalFileSizes && maxTotalFileSizeWarning"> |
| 31 | + {{ maxTotalFileSizeWarning }} |
| 32 | + </form-error-message> |
| 33 | + |
| 34 | + <form-error-message v-if="!validFilesAmount"> |
| 35 | + {{ invalidAmountWarning }} |
| 36 | + </form-error-message> |
55 | 37 | </template> |
56 | 38 |
|
57 | 39 | <script setup lang="ts"> |
58 | 40 | import { onMounted, onUpdated, ref, watch } from "vue"; |
59 | 41 |
|
60 | 42 | import { MucButton } from "../Button"; |
61 | | -import { MucIcon } from "../Icon"; |
| 43 | +import FormErrorMessage from "../Form/FormErrorMessage.vue"; |
62 | 44 | import IconFileUpload from "./IconFileUpload.vue"; |
63 | 45 |
|
64 | 46 | const { |
@@ -297,19 +279,6 @@ const _clearWarnings = () => { |
297 | 279 | cursor: pointer; |
298 | 280 | } |
299 | 281 |
|
300 | | -.drop-zone-error-message { |
301 | | - display: flex; |
302 | | - align-items: flex-start; |
303 | | -} |
304 | | -
|
305 | | -.drop-zone-error-message .icon { |
306 | | - margin-top: 0; |
307 | | -} |
308 | | -
|
309 | | -.drop-zone-error-message span { |
310 | | - margin-left: 4px; |
311 | | -} |
312 | | -
|
313 | 282 | .drop-zone-additional-information { |
314 | 283 | font-size: 14px; |
315 | 284 | } |
|
0 commit comments