mirror of
https://github.com/unraid/api.git
synced 2026-01-02 14:40:01 -06:00
refactor: connect status error
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
// eslint-disable vue/no-v-html
|
||||
import { storeToRefs } from 'pinia';
|
||||
|
||||
import { useErrorsStore } from '~/store/errors';
|
||||
@@ -10,12 +11,13 @@ const { errors } = storeToRefs(errorsStore);
|
||||
<template>
|
||||
<ul v-if="errors.length" class="list-reset flex flex-col gap-y-8px mb-4px border-2 border-solid border-unraid-red/90 rounded-md">
|
||||
<li v-for="(error, index) in errors" :key="index" class="flex flex-col gap-8px">
|
||||
<h3 class="text-18px py-4px px-16px text-white bg-unraid-red/90 font-semibold text-center">
|
||||
<h3 class="text-18px py-4px px-12px text-white bg-unraid-red/90 font-semibold">
|
||||
<span>{{ error.heading }}</span>
|
||||
</h3>
|
||||
<div v-html="error.message" class="text-14px px-12px"></div>
|
||||
<!-- eslint-disable-next-line vue/no-v-html -->
|
||||
<div class="text-14px px-12px" :class="{ 'pb-8px': !error.actions }" v-html="error.message" />
|
||||
<nav v-if="error.actions">
|
||||
<li v-for="(link, index) in error.actions" :key="`link_${index}`">
|
||||
<li v-for="(link, idx) in error.actions" :key="`link_${idx}`">
|
||||
<UpcDropdownItem :item="link" :rounded="false" />
|
||||
</li>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user