@@ -6,7 +6,7 @@ included in the LICENSE file.
66-->
77<script setup lang="ts">
88import { useClipboard } from ' @vueuse/core'
9- import { onBeforeMount , ref , watch } from ' vue'
9+ import { onBeforeMount , ref } from ' vue'
1010
1111import { Runtime } from ' @/api/common/omni.pb'
1212import type { DefaultJoinTokenSpec , SiderolinkAPIConfigSpec } from ' @/api/omni/specs/siderolink.pb'
@@ -25,6 +25,7 @@ import TButton from '@/components/common/Button/TButton.vue'
2525import Card from ' @/components/common/Card/Card.vue'
2626import TSpinner from ' @/components/common/Spinner/TSpinner.vue'
2727import { useWatch } from ' @/components/common/Watch/useWatch'
28+ import TAlert from ' @/components/TAlert.vue'
2829import {
2930 downloadAuditLog ,
3031 downloadMachineJoinConfig ,
@@ -34,7 +35,6 @@ import {
3435} from ' @/methods'
3536import { canReadAuditLog } from ' @/methods/auth'
3637import { auditLogEnabled , useInstallationMediaEnabled } from ' @/methods/features'
37- import { showError } from ' @/notification'
3838import HomeGeneralInformationCopyable from ' @/views/omni/Home/HomeGeneralInformationCopyable.vue'
3939
4040const auditLogAvailable = ref (false )
@@ -79,8 +79,6 @@ const {
7979 },
8080 runtime: Runtime .Omni ,
8181})
82-
83- watch (apiConfigErr , (err ) => err && showError (err ))
8482 </script >
8583
8684<template >
@@ -90,6 +88,8 @@ watch(apiConfigErr, (err) => err && showError(err))
9088 <TSpinner v-if =" apiConfigLoading" class =" size-4" />
9189 </header >
9290
91+ <TAlert v-if =" apiConfigErr" type =" error" :title =" apiConfigErr" />
92+
9393 <dl class =" flex flex-col gap-4" >
9494 <HomeGeneralInformationCopyable
9595 title =" Backend Version"
0 commit comments