diff --git a/src/components/connection/ConnectionErrorIndicator.vue b/src/components/connection/ConnectionErrorIndicator.vue index a4ae872896..523b7e8491 100644 --- a/src/components/connection/ConnectionErrorIndicator.vue +++ b/src/components/connection/ConnectionErrorIndicator.vue @@ -2,73 +2,62 @@ import { computed } from "vue"; import { useI18n } from "vue-i18n"; import { AlertTriangle, X } from "lucide-vue-next"; -import { - Popover, - PopoverContent, - PopoverTrigger, -} from "@/components/ui/popover"; +import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover"; import { useConnectionStore } from "@/stores/connectionStore"; const props = withDefaults( - defineProps<{ - connectionId?: string | null; - triggerClass?: string; - }>(), - { - connectionId: null, - triggerClass: "", - }, + defineProps<{ + connectionId?: string | null; + triggerClass?: string; + }>(), + { + connectionId: null, + triggerClass: "", + }, ); const { t } = useI18n(); const connectionStore = useConnectionStore(); -const errorMessage = computed(() => - props.connectionId - ? connectionStore.connectionErrors[props.connectionId] - : "", -); +const errorMessage = computed(() => (props.connectionId ? connectionStore.connectionErrors[props.connectionId] : "")); function clearError() { - if (props.connectionId) - connectionStore.clearConnectionError(props.connectionId); + if (props.connectionId) connectionStore.clearConnectionError(props.connectionId); } diff --git a/src/components/ui/popover/Popover.vue b/src/components/ui/popover/Popover.vue index a3fe9ac64b..e43a385bd0 100644 --- a/src/components/ui/popover/Popover.vue +++ b/src/components/ui/popover/Popover.vue @@ -1,19 +1,15 @@ diff --git a/src/components/ui/popover/PopoverAnchor.vue b/src/components/ui/popover/PopoverAnchor.vue index e96a121141..44a4296583 100644 --- a/src/components/ui/popover/PopoverAnchor.vue +++ b/src/components/ui/popover/PopoverAnchor.vue @@ -1,15 +1,12 @@ diff --git a/src/components/ui/popover/PopoverContent.vue b/src/components/ui/popover/PopoverContent.vue index b5fccb4503..7304b6b070 100644 --- a/src/components/ui/popover/PopoverContent.vue +++ b/src/components/ui/popover/PopoverContent.vue @@ -1,30 +1,23 @@