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:
4 files changed
+16
-10
No files matched your search
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user