mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-10 03:27:57 +00:00
refac
This commit is contained in:
parent
2d8c4b60af
commit
bf9d58674d
2 changed files with 3 additions and 3 deletions
|
|
@ -607,7 +607,7 @@
|
|||
type="submit"
|
||||
disabled={loading || !fileEditor}
|
||||
>
|
||||
{$i18n.t(edit ? 'Save' : 'Save & Create')}
|
||||
{edit ? $i18n.t('Save') : $i18n.t('Save & Create')}
|
||||
{#if loading}
|
||||
<Spinner className="size-3" />
|
||||
{/if}
|
||||
|
|
|
|||
|
|
@ -634,8 +634,8 @@
|
|||
bind:this={newNameInput}
|
||||
bind:value={newName}
|
||||
class="min-w-0 flex-1 bg-transparent py-0.5 text-xs outline-hidden"
|
||||
placeholder={$i18n.t(creating === 'file' ? 'File name' : 'Folder name')}
|
||||
aria-label={$i18n.t(creating === 'file' ? 'File name' : 'Folder name')}
|
||||
placeholder={creating === 'file' ? $i18n.t('File name') : $i18n.t('Folder name')}
|
||||
aria-label={creating === 'file' ? $i18n.t('File name') : $i18n.t('Folder name')}
|
||||
on:keydown={(event) => {
|
||||
if (event.key === 'Enter') {
|
||||
event.preventDefault();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue