This commit is contained in:
Timothy Jaeryang Baek
2025-04-05 04:05:52 -06:00
parent 0f310b3509
commit 0c0505e1cd
12 changed files with 613 additions and 368 deletions

View File

@@ -39,7 +39,7 @@
});
</script>
<AddServerModal bind:show={showConnectionModal} onSubmit={addConnectionHandler} />
<AddServerModal bind:show={showConnectionModal} onSubmit={addConnectionHandler} direct />
<form
class="flex flex-col h-full justify-between text-sm"
@@ -75,6 +75,7 @@
{#each servers as server, idx}
<Connection
bind:connection={server}
direct
onSubmit={() => {
updateHandler();
}}

View File

@@ -12,6 +12,7 @@
export let onSubmit = () => {};
export let connection = null;
export let direct = false;
let showConfigModal = false;
let showDeleteConfirmDialog = false;
@@ -42,9 +43,8 @@
<div class="flex w-full gap-2 items-center">
<Tooltip
className="w-full relative"
content={$i18n.t(`WebUI will make requests to "{{url}}{{path}}"`, {
url: connection?.url,
path: connection?.path ?? '/openapi.json'
content={$i18n.t(`WebUI will make requests to "{{url}}"`, {
url: `${connection?.url}/${connection?.path ?? 'openapi.json'}`
})}
placement="top-start"
>