Commit 4f52972 1 parent 34b0137 commit 4f52972 Copy full SHA for 4f52972
File tree 1 file changed +8
-8
lines changed
apps/listr/src/routes/(app)/new
1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 52
52
tags: $form .publicItems as NDKTag [],
53
53
});
54
54
55
- list .title = $form .title ;
56
- list .description = $form .description ;
55
+ list .title = $form .title . trim () ;
56
+ list .description = $form .description ?. trim () ;
57
57
58
58
// Only add a "d" tag if needed
59
59
if (list .kind ! >= 30000 && list .kind ! <= 40000 ) {
108
108
109
109
$ : nameInputDisabled = parseInt ($form .kind ) < 30000 ;
110
110
111
- $ : if ($form .kind === " 10000" ) $form .name = " Mute" ;
112
- $ : if ($form .kind === " 10001" ) $form .name = " Pin" ;
111
+ $ : if ($form .kind === " 10000" ) $form .title = " Mute" ;
112
+ $ : if ($form .kind === " 10001" ) $form .title = " Pin" ;
113
113
</script >
114
114
115
115
<svelte:head >
162
162
>
163
163
<AlertTriangle strokeWidth =" 1.5" size =" 24" class =" shrink-0 w-6 h-6" />
164
164
<span >
165
- Creating a new {$form .name } list will overwrite your current {$form .name }
165
+ Creating a new {$form .title } list will overwrite your current {$form .title }
166
166
list
167
167
</span >
168
168
</div >
178
178
id =" name"
179
179
tabindex =" 0"
180
180
class =" border-gray-400 bg-transparent rounded-md grow w-full disabled:border-gray-600 disabled:text-gray-500"
181
- bind:value ={$form .name }
181
+ bind:value ={$form .title }
182
182
disabled ={nameInputDisabled }
183
183
/>
184
184
<div class =" " tabindex =" -1" >
191
191
</Tooltip >
192
192
</div >
193
193
</div >
194
- {#if $errors .name }
195
- <span class ="text-sm text-red-600 italic" >{$errors .name }</span >
194
+ {#if $errors .title }
195
+ <span class ="text-sm text-red-600 italic" >{$errors .title }</span >
196
196
{/if }
197
197
</div >
198
198
<div class =" flex flex-col gap-0" >
You can’t perform that action at this time.
0 commit comments