mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-10-27 06:47:01 +00:00
f87d99f452
Use available admin space and make forms adapt to screen width. Preserve reply edits during resizing and improve widget feedback.
20 lines
538 B
Vue
20 lines
538 B
Vue
<script setup lang="ts">
|
|
import { TriangleAlert } from 'lucide-vue-next'
|
|
import { Alert, AlertDescription, AlertTitle } from '@shared-ui/components/ui/alert'
|
|
|
|
defineProps({
|
|
errorMessage: String,
|
|
border: Boolean
|
|
})
|
|
</script>
|
|
|
|
<template>
|
|
<Alert variant="destructive" v-if="errorMessage" :class="{ 'border-0': !border }">
|
|
<TriangleAlert class="w-4 h-4" aria-hidden="true" />
|
|
<AlertTitle>{{ $t('globals.terms.error') }}</AlertTitle>
|
|
<AlertDescription>
|
|
{{ errorMessage }}
|
|
</AlertDescription>
|
|
</Alert>
|
|
</template>
|