mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-15 19:30:38 +08:00
Trim input in registration field
Signed-off-by: Alexis Sellier <self@cloudhead.io>
This commit is contained in:
@@ -6,11 +6,12 @@
|
||||
|
||||
export let config: Config;
|
||||
|
||||
let label: string;
|
||||
let input = "";
|
||||
|
||||
function register() {
|
||||
navigate(`/registrations/${label}/form`);
|
||||
}
|
||||
$: label = input.trim();
|
||||
</script>
|
||||
|
||||
<style>
|
||||
@@ -41,7 +42,7 @@
|
||||
<div class="input-main">
|
||||
<span class="name">
|
||||
<DomainInput
|
||||
bind:value={label}
|
||||
bind:value={input}
|
||||
autofocus
|
||||
placeholder=""
|
||||
root={config.registrar.domain}
|
||||
|
||||
Reference in New Issue
Block a user