feat: display API errors

This commit is contained in:
2023-05-08 18:04:30 +02:00
parent c026ed4c6f
commit 89d2e1b9b3
5 changed files with 42 additions and 10 deletions

View File

@@ -0,0 +1,26 @@
<template>
<div class="error rounded-corners card-width">
<p>API call to {{ props.url }} failed</p>
</div>
</template>
<script setup lang="ts">
const props = defineProps({
url: {
required: true,
type: String,
},
});
</script>
<style lang="less">
@import 'node_modules/nord/src/lesscss/nord.less';
@import '../styles/classes.less';
.error {
display: inline-block;
padding: 2rem;
text-align: center;
background: @nord11;
}
</style>