UI: wrap long errors (#18458)

This commit is contained in:
Michael Geers 2025-01-27 21:48:33 +01:00 • committed by GitHub
parent c426fe006e
commit e85475b4e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 13 additions and 2 deletions

View file

@ -4,6 +4,17 @@ import OfflineIndicator from "./OfflineIndicator.vue";
<template>
<Story>
<OfflineIndicator />
<Variant title="offline">
<OfflineIndicator offline />
</Variant>
<Variant title="fatal">
<OfflineIndicator
:fatal="{
error: `cannot create charger 'wallbox_cphl': cannot create charger type 'template': cannot create
charger type 'hardybarth-ecbl: Post http://192.168.2.219/api/v1/chargecontrols/1/mode: context deadline exceeded (Client.Timeout
exceeded while awaiting headers)`,
}"
/>
</Variant>
</Story>
</template>

View file

@ -56,7 +56,7 @@
{{ $t("offline.configurationError") }}
</strong>
</div>
<div v-if="fatal">{{ fatal.error }}</div>
<div v-if="fatal" class="text-break">{{ fatal.error }}</div>
</div>
<button
type="button"