forked from open-webui/open-webui
fix: button click issue
This commit is contained in:
parent
8ed5759d0e
commit
04ddbf4306
6 changed files with 18 additions and 6 deletions
|
@ -109,7 +109,9 @@
|
||||||
<button
|
<button
|
||||||
class="relative rounded-full dark:bg-gray-700"
|
class="relative rounded-full dark:bg-gray-700"
|
||||||
type="button"
|
type="button"
|
||||||
on:click={profileImageInputElement.click}
|
on:click={() => {
|
||||||
|
profileImageInputElement.click();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<img
|
<img
|
||||||
src={profileImageUrl !== '' ? profileImageUrl : '/user.png'}
|
src={profileImageUrl !== '' ? profileImageUrl : '/user.png'}
|
||||||
|
|
|
@ -170,7 +170,9 @@
|
||||||
/>
|
/>
|
||||||
<button
|
<button
|
||||||
class=" flex rounded-md py-2 px-3.5 w-full hover:bg-gray-200 dark:hover:bg-gray-800 transition"
|
class=" flex rounded-md py-2 px-3.5 w-full hover:bg-gray-200 dark:hover:bg-gray-800 transition"
|
||||||
on:click={chatImportInputElement.click}
|
on:click={() => {
|
||||||
|
chatImportInputElement.click();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<div class=" self-center mr-3">
|
<div class=" self-center mr-3">
|
||||||
<svg
|
<svg
|
||||||
|
|
|
@ -597,7 +597,9 @@
|
||||||
<button
|
<button
|
||||||
type="button"
|
type="button"
|
||||||
class="w-full rounded-lg text-left py-2 px-4 dark:text-gray-300 dark:bg-gray-850"
|
class="w-full rounded-lg text-left py-2 px-4 dark:text-gray-300 dark:bg-gray-850"
|
||||||
on:click={modelUploadInputElement.click}
|
on:click={() => {
|
||||||
|
modelUploadInputElement.click();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
{#if modelInputFile && modelInputFile.length > 0}
|
{#if modelInputFile && modelInputFile.length > 0}
|
||||||
{modelInputFile[0].name}
|
{modelInputFile[0].name}
|
||||||
|
|
|
@ -559,7 +559,9 @@
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:text-gray-200 transition"
|
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:text-gray-200 transition"
|
||||||
on:click={documentsImportInputElement.click}
|
on:click={() => {
|
||||||
|
documentsImportInputElement.click();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<div class=" self-center mr-2 font-medium">Import Documents Mapping</div>
|
<div class=" self-center mr-2 font-medium">Import Documents Mapping</div>
|
||||||
|
|
||||||
|
|
|
@ -266,7 +266,9 @@
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:text-gray-200 transition"
|
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:text-gray-200 transition"
|
||||||
on:click={modelfilesImportInputElement.click}
|
on:click={() => {
|
||||||
|
modelfilesImportInputElement.click();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<div class=" self-center mr-2 font-medium">Import Modelfiles</div>
|
<div class=" self-center mr-2 font-medium">Import Modelfiles</div>
|
||||||
|
|
||||||
|
|
|
@ -242,7 +242,9 @@
|
||||||
|
|
||||||
<button
|
<button
|
||||||
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:text-gray-200 transition"
|
class="flex text-xs items-center space-x-1 px-3 py-1.5 rounded-xl bg-gray-50 hover:bg-gray-100 dark:bg-gray-800 dark:hover:bg-gray-700 dark:text-gray-200 transition"
|
||||||
on:click={promptsImportInputElement.click}
|
on:click={() => {
|
||||||
|
promptsImportInputElement.click();
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
<div class=" self-center mr-2 font-medium">Import Prompts</div>
|
<div class=" self-center mr-2 font-medium">Import Prompts</div>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue