Skip to content

Commit

Permalink
feat: optimize setup form (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
Zephyruso authored Aug 29, 2024
1 parent ad8dee3 commit 00ab6d4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/Setup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,15 @@ export default () => {
name="url"
type="url"
class="input input-bordered w-full"
placeholder="http://127.0.0.1:9090"
placeholder="http(s)://{hostname}:{port}"
list="defaultEndpoints"
/>

<datalist id="defaultEndpoints">
<option value="http://127.0.0.1:9090" />
<Show when={window.location.origin !== 'http://127.0.0.1:9090'}>
<option value={window.location.origin} />
</Show>
</datalist>
</div>

Expand Down

0 comments on commit 00ab6d4

Please sign in to comment.