refactor: put alerts into separate components

This commit is contained in:
2025-11-05 09:10:42 +01:00
parent 0bbc658034
commit fc0ce811c5
29 changed files with 153 additions and 123 deletions
+21
View File
@@ -0,0 +1,21 @@
<template>
<div>
<v-alert density="compact" :text="error" :title="error || 'Chyba'" type="error" class="mb-2 mt-2"></v-alert>
</div>
</template>
<script lang="ts">
export default {
props: {
title: {
type: String,
required: false,
default: "Chyba"
},
error: {
type: String,
required: true,
}
}
}
</script>