mirror of
https://github.com/open-webui/open-webui.git
synced 2026-01-04 23:55:22 +00:00
refac: channel name
This commit is contained in:
parent
0eb33e8e12
commit
f509f5542d
1 changed files with 7 additions and 0 deletions
|
|
@ -55,6 +55,12 @@
|
|||
|
||||
const submitHandler = async () => {
|
||||
loading = true;
|
||||
if (name.length > 128) {
|
||||
toast.error($i18n.t('Channel name must be less than 128 characters'));
|
||||
loading = false;
|
||||
return;
|
||||
}
|
||||
|
||||
await onSubmit({
|
||||
type: type,
|
||||
name: name.replace(/\s/g, '-'),
|
||||
|
|
@ -210,6 +216,7 @@
|
|||
placeholder={`${$i18n.t('new-channel')}`}
|
||||
autocomplete="off"
|
||||
required={type !== 'dm'}
|
||||
max="100"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue