mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
refac
This commit is contained in:
parent
2db9d6b5d2
commit
6362845065
1 changed files with 9 additions and 7 deletions
|
|
@ -226,13 +226,15 @@
|
||||||
</div>
|
</div>
|
||||||
</Selector>
|
</Selector>
|
||||||
|
|
||||||
<button
|
{#if $user?.role === 'admin' || $user?.permissions?.chat?.file_upload}
|
||||||
class=" px-3.5 py-1.5 font-medium hover:bg-black/5 dark:hover:bg-white/5 outline outline-1 outline-gray-100 dark:outline-gray-850 rounded-3xl"
|
<button
|
||||||
type="button"
|
class=" px-3.5 py-1.5 font-medium hover:bg-black/5 dark:hover:bg-white/5 outline outline-1 outline-gray-100 dark:outline-gray-850 rounded-3xl"
|
||||||
on:click={() => {
|
type="button"
|
||||||
filesInputElement.click();
|
on:click={() => {
|
||||||
}}>{$i18n.t('Upload Files')}</button
|
filesInputElement.click();
|
||||||
>
|
}}>{$i18n.t('Upload Files')}</button
|
||||||
|
>
|
||||||
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<!-- {knowledge} -->
|
<!-- {knowledge} -->
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue