fix(webui): dev proxy keeps the browser's Host, and editor errors show beside Save

Vite's proxy shorthand sets changeOrigin, so every mutation through the dev server failed archie-ui's same-origin check. The mapping and binding editors rendered their refusal at the top of a scrolled dialog, out of view of the Save button.
This commit is contained in:
sam committed 2026-09-23 22:58:45 +10:00
1 parent 068d89ebb4
commit ebab40ec4d
4 files changed
+16 -10

No files matched your search

+4 -2
View File
@@ -40,8 +40,6 @@ function onOpenChange(open: boolean) {
</DialogDescription>
</DialogHeader>
<MappingActionError v-if="actionError" :failure="actionError" />
<Card>
<CardContent>
<MappingForm />
@@ -73,6 +71,10 @@ function onOpenChange(open: boolean) {
</CardContent>
</Card>
<!-- Beside the buttons, not at the top: the dialog scrolls, and Save is
clicked at the bottom, where a refusal must be seen. -->
<MappingActionError v-if="actionError" :failure="actionError" />
<DialogFooter>
<Button variant="outline" @click="closeEditor">Cancel</Button>
<Button :disabled="saving" @click="saveMapping">