refactor(ui): block error messages use Alert

This commit is contained in:
sam committed 2026-10-26 19:59:00 +11:00
1 parent d98abad8bb
commit 7c050eef14
64 files changed
+286 -189

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
<script setup lang="ts">
import { Alert, AlertDescription } from "@/components/ui/alert";
import { storeToRefs } from "pinia";
import { computed, onMounted, ref, watch } from "vue";
import { useRoute, useRouter } from "vue-router";
@@ -57,7 +58,7 @@ onMounted(async () => {
</div>
<p v-else-if="org" class="mb-4 text-lg font-semibold tracking-[-0.01em]">{{ org.name }}</p>
<p v-if="error" role="alert" class="mb-4 text-sm text-danger">{{ error }}</p>
<Alert v-if="error" variant="destructive" class="mb-4"><AlertDescription>{{ error }}</AlertDescription></Alert>
<!-- The sections need the org id, so they wait for the one read; keying on
it remounts the open section when an instance admin switches org. -->